Normally, we use regular expression match from left to right direction. I want to know whether there is some switch that can be used to match from the right to left in python?
Or is this feature embedded in any other language?
e.g.
abcd1_abcd2
If given regular expression abcd, it will match two abcd strings. What I want is to put the last match at first, thus matching in reverse direction.
You can reverse the list as proposed by @SilentGhost: