How to extract particular string from text?

Sometime I am using HCCLAIMPMT or MERCH DEP or PRV PYMTSF

@sambulkar - you can use OR condition in Regex pattern to achieve it…

Check it here…

https://regex101.com/r/SOyr02/1

system.text.regularexpressions.regex.match(OriginalTextCompanyEntryDesc.ToString,".+(?=\s+HCCLAIMPMT|MERCH DEP|PRV PYMTSF)").value.trim

hope this helps…

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