I need a regular expression to parse words from a sentence or a paragraph. Some separaters that should be used are: spaces, and dots. So in:
My name is Bob.I'm 104 yrs old.
Bob and I'm are seperated even though there isn’t any space between them, but a dot.
Any other regular seperaters of words should also be included.
The
\\swill match all white space characters (such as space, tab, new line, etc). The.will match, well a.… If you wanted to add more characters, just add them after the.(with the exceptions that a[, a]and a#must be escaped with\\, and a-must be the last character in the list)…It will return for your above sentence: