A
Aaron Fude
Hi,
I try the following and it produces no matches:
Pattern pattern = Pattern.compile("ab*s");
Matcher matcher = pattern.matcher("abacus");
while (matcher.find()) {
System.out.println(matcher.start() + " " + matcher.end());
}
I must not understand regular expressions at all. What am I missing?
Thanks!
I try the following and it produces no matches:
Pattern pattern = Pattern.compile("ab*s");
Matcher matcher = pattern.matcher("abacus");
while (matcher.find()) {
System.out.println(matcher.start() + " " + matcher.end());
}
I must not understand regular expressions at all. What am I missing?
Thanks!