Wednesday, 11 September 2013

Regex for comparing Strings with spaces

Regex for comparing Strings with spaces

Im trying to compare is a string is present among a list of Strings using
regex.
I tried using the following...
(?!MyDisk1$|MyDisk2$)
But this isnt working... for the scenarios like
(?!My disk1$|My Disk2$)
Can you suggest a better approach to deal with such situations..

No comments:

Post a Comment