In Java, I am trying to return all regex matches to an array but it seems that you can only check whether the pattern matches something or not (boolean).

How can I use a regex match to form an array of all string matching a regex expression in a given string?

6 Answers
6

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *