PDA

View Full Version : Regular Expressions



Zaid
01-21-2013, 03: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, 06: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'