samedi 3 novembre 2018

Pattern Regex Java two patterns at the same time?

i'm trying to sort some text using regex pattern, and i already have something like this:

Pattern pattern = Pattern.compile("\w{4,30}\b");

If i'm right it should give me strings of 4 to 30 characters long, but i don't want any number in my Strings too, don't know how to make two filters at the same time, any suggestions?

Aucun commentaire:

Enregistrer un commentaire