Usually we use regular expression matching from left to right. I want to know if there is any switch that can be used to match from right to left in Python? Or is this feature built into any other language?
eg
abcd1_abcd2
If a regular expression is specified abcd, it will match two lines abcd. What I want is to put the last match first, thus matching in the opposite direction.
source
share