75lb/renamer

Regexp finishes after first group

krisavi opened this issue · 3 comments

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 ?

got it fixed, replaced ' with "
renamer --find "/([^\.]+)\.[^\.]+\.(\w+)/" --replace '$1.$2' build/static/media/*

75lb commented

glad you fixed.. are you on Windows?

75lb commented