Meaningless Drivel is fun!*
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
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
 
Similar Threads
Seaching and Replacing text program
Regular expression to check for specific special characters (any repitition) and 0 to 9 numbers
Need help in understanding greedy, reluctant quantifiers in regular expressions??
reusable Pattern object
finding regex for extracting a pattern