Hi Guys,
I am getting this string “Kerala / 32”. I need only character excluding numbers and special character. Kindly help me out in this.
Thanks & Regards
Gaurav Kumar
Hi Guys,
I am getting this string “Kerala / 32”. I need only character excluding numbers and special character. Kindly help me out in this.
Thanks & Regards
Gaurav Kumar
Please use this regex pattern:
[A-Za-z]+
Use Matches activity
Input: Kerala / 32 (or the string variable)
Pattern: “[A-Za-z]+”
Result: array (let’s say arrMatches as variable name)
To get Kerala, use arrMatches(0).ToString
Let me know if it works
@Gaurav_Kumar2 - Try this one Regex.Matches(“Kerala / 32”, “[a-z,A-Z]”)
try using the following Regex
\b[^\d\W_]+\b
Find the attached flow for refrence. Worked with your given example.
Hope this would be of help
Regards,
Ashley Nihal Dcunha
RegEX.zip (11.0 KB)
Hi @ashley11
Thanks for your response its working fine when i am having only one one word like “Kerala / 32” so its working fine. and when it comes for “Tamil Nadu / 33” its only getting “Nadu”. Can you help me out in this.
give me a moment.
BlankProcess55.zip (11.0 KB)
Please check this one
[A-Za-z]*
Try this one in Matches