I'm trying to rename files in a folder which has files with a name like:
['A_LOT_OF_TEXT'].pdf&blobcol=urldata&blobtable=MungoBlobs
- I basically want to obtain everything before the '.pdf' including the '.pdf'
After install brew rename, I tried using this but it does not work:
rename -n -v '.*?(.pdf)' *
I get the error:
Using expression: sub { use feature ':5.28'; .*?(.pdf) }
syntax error at (eval 2) line 1, near "; ."
Any solution to this?