Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Regex lookahead and lookbehind

807606May 24 2007 — edited May 24 2007
I have been reading the regex threads that are being posted once in a while and I often regexes using lookaheads or lookbehinds. I was reading the documentation for these but I am stomped when I see:

(?=X) X, via zero-width positive lookahead

Can anyone explain me what this "zero-width" thing is all about?


thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 21 2007
Added on May 24 2007
2 comments
1,763 views