| Author |
regex
|
Ankur kothari
Ranch Hand
Joined: Sep 06, 2009
Posts: 531
|
|
|
are there any gud articles on regex and greedy quantifiers?
|
 |
Henry Wong
author
Sheriff
Joined: Sep 28, 2004
Posts: 16695
|
|
ankur kothari wrote:are there any [good] articles on regex and greedy quantifiers?
The sun tutorial is a good place to start...
http://java.sun.com/docs/books/tutorial/essential/regex/
Personally, I learn regex from Perl, and found their tutorial to be more complete -- although not related to Java...
http://perldoc.perl.org/perlretut.html
And of course, there is a website devoted to all things regex...
http://www.regular-expressions.info/tutorial.html
Henry
|
Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
|
 |
little baby
Greenhorn
Joined: Nov 26, 2009
Posts: 1
|
|
|
[Spam remvoved.]
|
 |
Ankit Garg
Saloon Keeper
Joined: Aug 03, 2008
Posts: 9189
|
|
|
"little baby" please check your private messages for some administrative matter...
|
SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
|
 |
Minhaj Mehmood
Ranch Hand
Joined: Jan 22, 2007
Posts: 400
|
|
out put
Pattern is: \d\w
4 56
7 7a
anyone can explain the output please?
I read the above expression as "match any digit followed by 1 white space".
|
 |
Minhaj Mehmood
Ranch Hand
Joined: Jan 22, 2007
Posts: 400
|
|
Minhaj kaimkhani wrote:
out put
Pattern is: \d\w
4 56
7 7a
anyone can explain the output please?
I read the above expression as "match any digit followed by 1 white space".
AH I got the answer \w = any character not white space!!
|
 |
 |
|
|
subject: regex
|
|
|