I have a string
"ZTFN00 identification number is 89320394 and mobile number is +918017828848"
and I want to identify the first occurrence of a number (89320394 in this case) from the keyword ZTFN. Also, the expression shall not return 00 with the ZTFN and only return the first occurrence of the number.
I tried \d+(?!ZTFN00) but it does not work !!
Please suggest
This should do it:
If your 'number' is always separated by whitespace ( where there 00 after ZTFN isn't) then you can use that as your test: