0

Say there is a string:

16 NIP 712-10-08-323 2020

I'd like to have a full match what comes after NIP until first character different from [0-9-]. So I'd like my full match be 712-10-08-323. I've come up with the following regex, but it matches NIP 712-10-08-323 instead of 712-10-08-323.

(?:NIP )[0-9-]{13}

menteith
  • 596
  • 14
  • 51

0 Answers0