Can someone explain this?
[Garrett-Smiths-Computer:~/Documents/java/patterns] garrett%
java Patterns Exception in
thread "main" java.lang.IllegalStateException: No match found
at java.util.regex.Matcher.group(Matcher.java:353)
at Patterns.main(Patterns.java:54)
[Garrett-Smiths-Computer:~/Documents/java/patterns] garrett% java Patterns
1x
Unless I call m.matches, the pattern fails. Why? Is this a bug?
[ January 18, 2003: Message edited by: Garrett Smith ]