J
jeffM
I'm searching for the following substrings TAG001,TAG002 and TAG003 from
this string
"VCE1246KYTAG001ZX178TAG002DHU7749TAG003"
Pattern pattern = Pattern.compile( "'(TAG00\\d[^T]*){3}'" );
Matcher matcher =
pattern.matcher("VCE1246KYTAG001ZX178TAG002DHU7749TAG003");
System.out.println( matcher.groupCount() );
and the System.out is printing only 1.Where am I going wrong here?
jeff
this string
"VCE1246KYTAG001ZX178TAG002DHU7749TAG003"
Pattern pattern = Pattern.compile( "'(TAG00\\d[^T]*){3}'" );
Matcher matcher =
pattern.matcher("VCE1246KYTAG001ZX178TAG002DHU7749TAG003");
System.out.println( matcher.groupCount() );
and the System.out is printing only 1.Where am I going wrong here?
jeff