Hi All,
I want to extract the first word from a sentence by using regular expression.
Example - I/p : asdfeghh qwerty hrktjhrtkhrkt
Expected o/p : asdfeghh
Can anyone help me to solve this?
Thanks
Hi All,
I want to extract the first word from a sentence by using regular expression.
Example - I/p : asdfeghh qwerty hrktjhrtkhrkt
Expected o/p : asdfeghh
Can anyone help me to solve this?
Thanks
How about this expression
System.Text.RegularExpressions.Regex.Match(YourString,"^\S+").Tostring
Hi,
How about the following?
System.Text.RegularExpressions.Regex.Match(yourString,"\w+").Value
Regards,
Can you all help me with the regular expression to use in Abbyy flexilayout studio
You can directly use a split activity instead as below
Say your string variable is str
Then str.Trim.Split(“ ”,2,StringSplitOptions.None)(0).Trim
This will always give the first work
Cheers
Kindly check out the document @rnahasnahasuddin
https://help.abbyy.com/en-us/finereader/12/regularexpression/
https://help.abbyy.com/en-us/flexicapture/12/flexilayout_studio/regex_ext/
Regards
Gokul
Can you help me with an example?