In a Java environment, I want to build one or more patterns that enable me to get two 'views' from the same piece of matched text. For example, if I have a numeric pattern like '1234', I want to build 'view-2' and 'view-4' versions of the match. 'view-2' would return '12' and 'view-4' would return '1234'. Is there a way to do this? I ask because I found documentation 'somewhere' (sorry, I can't find the specific citation) that stated that after a pattern is match, that same pattern cannot subsequently have additional regex matches performed on it. If my understanding is correct, I'm interested to know approaches that I can use to achieve my desired results. Thanks.