Help with a reference to regex group
Posted: 05 Dec 2019 15:20
I'm trying to write a simple script to copy the files in the following way:
Here is what I tried:
The problem is that
Code: Select all
from filename_with_multiple_exts.user.js
to filename_with_multiple_exts.user.js@1300.user.js // 13:00 is the current time (1:00 pm)
Code: Select all
doesn't work
::$a = regexmatches("<curname>", "^([^.]*)\.(.*)$"); copyas '<curname>@<date HHmm>.' . $2;
as well as this
::$a = regexmatches("<curname>", "^([^.]*)\.(.*)$"); copyas '<curname>@<date HHmm>.' . $a$2;
$2 doesn't work.