Is there a way that I could print the contents of each regex match within a loop? Say I have the following pattern:
1xxxx2xxxx3
If I have a matcher that is (?mi)(\d)...How could I iterate through the matches and print out the contents of each match?
ex) System.debug(match1) //should be 1
System.debug(match2) //should be 2
System.debug(match3) //should be 3