0

I have the following regex expression but it fails to match on only the 1st occurrence of the digit "2":

(?<=[a-zA-Z0-9])[2A-Z]

For example, if I use the string "fifa2020" it will match on both 2's. I only want it to match on the first 2.

How do I modify the existing regex (I need the parts of it that are currently working) to achieve what I want?

https://regex101.com/r/gi0IrZ/1

d2learner
  • 3
  • 1

0 Answers0