Why does this work?
Posted: Wed Oct 02, 2013 7:02 am
The source text looks like this:
00_c_People\
00_c_SimpleBlue\
2006_Audio\
2006_AutoDefault\
I want it like this:
People\
SimpleBlue\
Audio\
AutoDefault\
Using
Find (.*)_(.*)
Replace with \2
I expected it to fail for the first two lines, delivering:
c_People\
c_SimpleBlue\
Audio\
AutoDefault\
But to my surprise it gave the correct result.
Is that because it looks for the underscore from right to left, rather than left to right as I'd assumed? Or some other explanation?
--
Terry, East Grinstead, UK
00_c_People\
00_c_SimpleBlue\
2006_Audio\
2006_AutoDefault\
I want it like this:
People\
SimpleBlue\
Audio\
AutoDefault\
Using
Find (.*)_(.*)
Replace with \2
I expected it to fail for the first two lines, delivering:
c_People\
c_SimpleBlue\
Audio\
AutoDefault\
But to my surprise it gave the correct result.
Is that because it looks for the underscore from right to left, rather than left to right as I'd assumed? Or some other explanation?
--
Terry, East Grinstead, UK