...

View Full Version : Regular Expressions



Zaid
01-21-2013, 02:48 PM
Can anyone explain what is meant by the "anchor" \b.
The book says it matches between boundaries. Explain with an Example.
:p

alykins
01-21-2013, 05:57 PM
here (http://www.regular-expressions.info/wordboundaries.html) is a good article on it. Using their example


\bis\b

This island is beautiful.


would yeild one match on the word 'is', ignoreing the 'is' in both 'this' and 'island'



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum