I have text of the form text…moretext…moretext…moretext…
Basically, i have sentences that are seperated by three dots. How i can write a regex expression for extracting just the text and not the dots in an ienumerable?
I have text of the form text…moretext…moretext…moretext…
Basically, i have sentences that are seperated by three dots. How i can write a regex expression for extracting just the text and not the dots in an ienumerable?
@CtrlAltGiri Please check below regex expression.
System.Text.RegularExpressions.Regex.Matches("text…moretext…moretext…moretext…","[A-z]+")
To match both upper and lower case letters use pattern as “[A-z]+”
To match only lower case letters use pattern as “[a-z]+”
To match only upper case letters use pattern as “[A-Z]+”
(\w)+
use this in Matches activity you will get the string array as out put
Regex_1.zip (11.3 KB)
This is perfect and answers my question, I was thinking of a different approach.
So,
Why can’t i do, [(...(.+)) ((.+)...)] ?