w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
How to extract which combination of regex match from my pattern?

You can use matcher.group() method once you get Matcher out of that Pattern

Matcher m = ANIMALS.matcher("The boy is good");
while(m.find()) {

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.