regex - Java Regular Expression -


I need to define a (java) regex that will match any string in which none of them are included

  • Is it possible to express it as a single reggae? I know that it will be more readable to use 3 different regexs, but if possible, I want to do it in one.

    Thanks, Don

  • Try the following:

      Last Private Static Patterns p = pattern.compile (". * \\ b (?: Foos??. Bars | Bazs) \\ b *"); Public Boolean isGoodString (string stringtest) {return! P.matcher (stringToTest) .matches (); }  

    Comments

    Popular posts from this blog

    php - multilevel menu with multilevel array -

    .net - C# List<T>.Find(x=>x.Rectangle.Contains(Point)) FAIL -

    objective c - iPhone and it's wireless area -