File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Spring in Action this week in the Spring 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
 
jQuery in Action, 2nd edition
 
subject: Need explanation on how Lookahead example work