I want pattern for the below
RENEWAL OF YOUR POLICY:COE0003667000109
Are you looking to extract COE0003667000109 ?
Is it always a combination on 3 letters and 13 digits?
If so you can try:
[A-Za-z]{3}\d{13}
1 Like
Use this below code in assign, @pravin_calvin
Var(String type) = System.Text.RegularExpressions.Regex.Matches(“RENEWAL OF YOUR POLICY:COE0003667000109”,“:([A-Z\d]+)”)(0).Groups(1)
1 Like
I have the pattern after :
i want to extract as whole
Yes the above regex should work when you try to extract the pattern after :
The regex [A-Za-z]{3}\d{13} extracts patterns that have: 3letters followed by 13 digitis.
1 Like
But i also want to extract the text before that :
If that is static you can use:
RENEWAL OF YOUR POLICY:[A-Za-z]{3}\d{13}
as the pattern
1 Like