JDEE8297
asked on
Regular expression to find exact matches
http://forums.asp.net/t/1254125.aspx
I am trying to enhance this tool a little with some other way of handling the string match, I want to use regular expressions where I can find the exact match for a word in the blacklist, right now this routine finds any match. As in you have a the word "created" it will find a match on "create" as being part of the word and flag it as an error.
I using vb.net, but I just need to find a regular expression to do it.
This is what I ahve so far
/\screate|\sfetch|\sdeclar e
but for whatever reason it finds no match.
I am trying to enhance this tool a little with some other way of handling the string match, I want to use regular expressions where I can find the exact match for a word in the blacklist, right now this routine finds any match. As in you have a the word "created" it will find a match on "create" as being part of the word and flag it as an error.
I using vb.net, but I just need to find a regular expression to do it.
This is what I ahve so far
/\screate|\sfetch|\sdeclar
but for whatever reason it finds no match.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thank you.
Try this little tool, it is great for building regular expressions, so easy.
http://www.ultrapico.com/Expresso.htm