Topic: Regular expression
Hi,
I have files whose names are
yyyy-mm-dd.something.else.ext
I would like to put the front date at the end of the base file:
something.else.yyyy-mm-dd.ext
The regular expression
%b(s/(.*?)\.(.*)/\2/)
gives
something.else
as expected, but
%b(s/(.*?)\.(.*)/\1/)
gives
yyyy-mm-ddsomething.else
instead of
yyyy-mm-dd
Furthermore, \2 could be replaced with \3, \4, etc.: I think that those variables values should be empty instead of giving the same value of \2.
Did I discover a bug?
Regards,
Michel.