Topic: Regular expression
Hi,
I have files whose names are
yyyy-mm-dd.something.else.extI would like to put the front date at the end of the base file:
something.else.yyyy-mm-dd.extThe regular expression
%b(s/(.*?)\.(.*)/\2/)gives
something.else as expected, but
%b(s/(.*?)\.(.*)/\1/)gives
yyyy-mm-ddsomething.elseinstead of
yyyy-mm-ddFurthermore, \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.