This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Java in General and the fly likes Need explanation on how Lookahead example work Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Need explanation on how Lookahead example work" Watch "Need explanation on how Lookahead example work" New topic
Author

Need explanation on how Lookahead example work

Jack Bush
Ranch Hand

Joined: Oct 20, 2006
Posts: 235
Hi All,

I need your advice on explaining how the following regular expression example, illustrated on the last paragraph from
http://www.regular-expressions.info/lookaround.html:



I just understand how there is a mis-matched between after the lookahead had been discarded. Moreover, what is the correct regular expression?

Thanks a lot,

Jack
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Need explanation on how Lookahead example work