Hi All, I would like to seek some help on how to extract the Company name using regex expression.
So far, i have only came out with the following regex expression.
(?<=COMPANY NAME:)\b(\w+)|(\d)(?:[A-Z0-9])
Text as follows:
BIZ CHECK
COMPANY NAME: 1EVOLUTION SOLUTION
REGISTRATION NO.: 53447706B
BIZ CHECK
COMPANY NAME: DYSEN ELECTRONICS
REGISTRATION NO.: 53438210W
Yoichi
(Yoichi)
2
HI,
How about the following expression?
System.Text.RegularExpressions.Regex.Match(yourString,"(?<=COMPANY NAME:\s*).*").Value
Regards,
thanks! it works perfectly!
added an “\b” to exclude the word boundary
1 Like
Hi @Yoichi , the regex expression seems to pick up an additional line and some how some files; the Company name cannot be extracted…
Before i run the UiPath, i tried the regex expression on this site:
http://regexstorm.net/tester, everything looks perfect.
system
(system)
Closed
5
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.