From the email subject :PX #110 - Grease Trap, How can i get only store no that is 110 and the issue reason that is Grease Trap?
- You can get mail subject and store it in a variable.
- Use regex expression to get the “110” value from that.
Can you please share the sample mail subject
Could you please try below regex and capture the values in groups
Thanks…but please could you guide me how can i store these group values in a variable ?
Try the Expression
System.Text.RegularExpressions.Regex.Match(“PX #110 - Grease Trap”,"#(\d+)[\s-]").Groups(1)
Hey, @aparna30 ,
check the below screenshot.
Logic : System.Text.RegularExpressions.Regex.Replace(":PX #110 - Grease Trap", “[^0-9]”, “”).trim
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.