Got more questions? Find advice on: ASP | SQL | XML | Windows
Welcome to RegexAdvice Sign in | Join | Help

RegEx to match all words except some

  •  12-12-2007, 12:10 PM

    RegEx to match all words except some

    Hi,

      I need a regex that matches a string containing words (only the letters of the english alphabet, upper and lower case, and digits) and exclude words like MS, IB, DS etc...

    Programming language is Java. I tried with \\w+(?:MS|IB|DS). I would appreciate for your help.

     

    regards,

    RB
     

    Filed under:
View Complete Thread