75lb / renamer

Rename files in bulk.
MIT License
526 stars 30 forks source link

Regexp finishes after first group #41

Closed krisavi closed 5 years ago

krisavi commented 5 years ago

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 ?

krisavi commented 5 years ago

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

75lb commented 5 years ago

glad you fixed.. are you on Windows?

75lb commented 5 years ago

ok thanks.. that explains the quotes thing - just checking.