posted 15 years ago
Hi Abhi,
Your example won't throw a PatternSyntaxException. That's thrown by compile, when you give bad syntax for the regex. For example, try deleting the period (.) and run your program again.
All code in my posts, unless a source is explicitly mentioned, is my own.