mercredi 15 mars 2017

How to get all matches in java Pattern

I create some code like Pattern pattern = Pattern.compile("(?(?[0-9])+\s+)(?[a-z])"); How can i get all strings, witch matches in group "subgroup"? I try to put string "123 456 789 abc" and then i want to get all numbers.

Aucun commentaire:

Enregistrer un commentaire