Related articles |
---|
Tutorial on Regular Expressions in Java1.4 vikramasanjeeva@hotmail.com (Vikrama Sanjeeva) (2002-09-08) |
Re: Tutorial on Regular Expressions in Java1.4 bhauman@cs.wcu.edu (linergy) (2002-09-19) |
From: | "linergy" <bhauman@cs.wcu.edu> |
Newsgroups: | comp.compilers |
Date: | 19 Sep 2002 01:25:45 -0400 |
Organization: | http://groups.google.com/ |
References: | 02-09-048 |
Keywords: | Java, lex |
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" <vikramasanjeeva@hotmail.com> 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
comp.compilers page.
Search the
comp.compilers archives again.