REGEX manapulatio

Hi Everyone, Please assist me on this…I have this regex to extract 8 digits it can find on email :

“\b\d{8}\b”
and assume that is a policy number but then, I thought a policy number is 8 number but recently find out its sometimes 7…Is there a method I can use to achieve this?
search for 7 digits ,if not 7 digits then check for 8 digits instead.

Is there a pattern like that or i will have to use if conditions

@Anelisa_Bolosha1

Try this

\b\d{7,8}\b

Cheers

1 Like

Thanks so much @Anil_G ,works very well

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.