Lets say i have some regex = "..(group1)..|..(group2).."
pattern.matcher(regex)
matcher.find()
// how can i access the result??
// i dont wanna use matcher.group(1) or matcher.group(2)
// since i don't really know what will be the result.
As u can see i don't know how to get my result. im looking for something like matcher.getResultedGroup.. Could anyone please explain what should i do?
- If u have other suggestion to expand my knowledge i'd love to hear..