Dears,
How To Get All Words from a Text File using RegEX in UiPath?
Thanks in advance
Dears,
How To Get All Words from a Text File using RegEX in UiPath?
Thanks in advance
give a try on following pattern \b.*\b
How about this pattern:
[a-zA-Z]+
Dear @Steven_McKeering , It’s working but words with Capital Letter at the beginning split it into 2 Parts :
Example :
Uipath => Gives “U” and “ipath” ?
Hmmm are you sure your sample doesn’t have a space?
Try this pattern.
[A-z]+
Or this pattern instead.
\w+
Sure there is no space
Neither of them is working
How are you using Regex?
Are you using the ‘matches’ activity or an assign?
I’m using Matches Activity
Under RegexOptions, be sure to select multi line.
How are you checking it’s not working?
I got the issue, seems is related to some sepcial Characters ( non-latin ones), like :
když nechci jít osobně na pobočku? gives:
Okay, you have two options.
See Section 6 of my Regex Megapost
1 - @ppr’s pattern => Keep sentense as it is
2 Clean the string first, then apply my pattern. Note this will remove those characters. => I don’t want to clean those characters, I need them as they are parts of my words
I’m checking this topic, seems very interesting …I will update.
If you want to keep the words and letters exactly as they are then try this pattern:
[^\s]+
We got there in the end
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.