Writing regex to find Two letters and 6 numbers ( PO123456 )

Hi I need a regular expression string to detect whether something contains two letters and 6 numbers. e.g. PO123456 or PO654321 OR PO111111 so the beginning two characters are PO and the following 6 are numbers. How would I do this?


For now, can you try the following?


It might not work, if some non-whitespace character is concat with the target.


Hi @aquinn

Here is the Regex

You Can Use this with the Matches Activity or you can assign as a string

“Your variable”=System.Text.RegularExpressions.Regex.Match(SString,"\w[PO]\d{6}").ToString

Note: SString=String you need to search for

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