Can you please suggest a regex code that will select all words. Basically everything between whitespaces
Example-string('This is a man's world'
)
I need to match-'This' 'is' 'a' 'man\s' 'world'
Can you please suggest a regex code that will select all words. Basically everything between whitespaces
Example-string('This is a man's world'
)
I need to match-'This' 'is' 'a' 'man\s' 'world'
This one should do:
(\S+)
It will match all sequences of non-space characters.
See https://regex101.com/r/LZ6C1s/2 for explanation