regex - Java Regular Expression -
I need to define a (java) regex that will match any string in which none of them are included
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
Post a Comment