Java Programming/Regular Expressions
From Wikibooks, open books for an open world
Matcher m=Pattern.compile("regex").matcher("astring"); then use this Matcher object to get all matches from the candidate "astring".
This page may need to be