.NET Regular Expression to find actual words in text
- by Mehdi Anis
I am using VB .NET to write a program that will get the words from a suplied text file and count how many times each word appears. I am using this regular expression:-
parser As New Regex("\w+")
It gives me almost 100% correct words. Except when I have words like
"Ms Word App file name is word.exe." or "is this a c# statment If(ab?1,0) ?"
…