Is there a regex pattern that splits sentences into words?

NeoTechni

Well-Known Member
Licensed User
Longtime User
I could just use
B4X:
regex.Split(" ", text)

But I'd prefer something that handles more punctuation
 
Last edited:

NeoTechni

Well-Known Member
Licensed User
Longtime User
What am I doing wrong?

B4X:
tempstr = Regex.Split("(\b[^\s]+\b)", Text)

text= "Please send issues to [email protected], putting them in the reviews doesn't help me find/fix them".touppercase

tempstr ends up being an array with 15 cells, but they're all blank.
 
Upvote 0
Top