Closed krisavi closed 5 years ago
Trying to do a command like: renamer --find '/([^\.]+)\.[^\.]+\.(\w+)/' --replace '$1.$2' build/static/media
renamer --find '/([^\.]+)\.[^\.]+\.(\w+)/' --replace '$1.$2' build/static/media
file that it should apply is test.3af24c.jpg
Renamer version 1.1.0
Getting error: \.[\.]+\.(\w+)$/i' was unexpected at this time.
\.[\.]+\.(\w+)$/i' was unexpected at this time.
It seems to finish after first group and not continue with regexp.
Am I missing something ?
got it fixed, replaced ' with " renamer --find "/([^\.]+)\.[^\.]+\.(\w+)/" --replace '$1.$2' build/static/media/*
renamer --find "/([^\.]+)\.[^\.]+\.(\w+)/" --replace '$1.$2' build/static/media/*
glad you fixed.. are you on Windows?
ok thanks.. that explains the quotes thing - just checking.
Trying to do a command like:
renamer --find '/([^\.]+)\.[^\.]+\.(\w+)/' --replace '$1.$2' build/static/media
file that it should apply is test.3af24c.jpg
Renamer version 1.1.0
Getting error:
\.[\.]+\.(\w+)$/i' was unexpected at this time.
It seems to finish after first group and not continue with regexp.
Am I missing something ?