How to use regular expression to reverse search, and limit more than two conditions
How to use regular expression to reverse search, and limit more than two conditions
For example, my text is as follows:
Good abc1980
Good ace1980
Good abc1988
Good my1980
------------
I just want to find: “Good” in "Good abc1980"
I use regular: Good (?=\sabc1980)
It can be found.
Conversely, I want to find "1980" in "Good my 1980"
I use regular: (?<=Good my) 1980
The result was failure.
How to solve this problem?
