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

    oracle - The fastest way to check if some records in a database table? -

    php - multilevel menu with multilevel array -

    jQuery UI: Datepicker month format -