What I Want CapturePoint Regex String Input Text Result What This Does

Find INVOICE any number of spaces before #, but don’t capture it and then capture any numbers, letters, dashes, or dots until the end of string.

(?<=INVOICE\s?#\s*)[0-9|a-zA-Z\-\.]+(?=\s|$)

INVOICE # 1A2b3Cc

1A2b3Cc

Validate INVOICE and any number of spaces before #, but don’t capture it and then capture any numbers, letters, dashes, or dots until the end of string.

 

Was this article helpful to you?