|Tutorial on Regular Expressions in Java1.4 firstname.lastname@example.org (Vikrama Sanjeeva) (2002-09-08)|
|Re: Tutorial on Regular Expressions in Java1.4 email@example.com (linergy) (2002-09-19)|
|Date:||19 Sep 2002 01:25:45 -0400|
|Posted-Date:||19 Sep 2002 01:25:45 EDT|
The problem with regex in java is that you have to further escape each
'/' with yet another. This results in absolutly unintelligable regular
expressions. I suggest that you look to the Java API under the Pattern
and Matcher classes.
When you find that it is very difficult to produce intelligable RE, a
good idea would be to write a program to convert unescaped REs to the
escaped vesrsion that Java needs.
"Vikrama Sanjeeva" <firstname.lastname@example.org> wrote
> I am starting to write Lexical Analyzer in Java.I came to know that
> Java 1.4 has make the life easier by introducing Regular Expression
> feature.Now i need to know how RE works in Java.So is there any good
> tutorial on RE in Java?.Please help me.
Return to the
Search the comp.compilers archives again.