apologies for the rookie.
I have a small journal where I allow users to comment on the things I post and convert some characters to emoticons.
therefore :) becomes the image <img src='\smiley\smile.png' /> and : d becomes <img src='\smiley\big-smile.png' /> etc. etc.
Recently, one of my friends posted a training link in which he had :d , and my regular expression of emoticons jumped over the link and broke it into pieces with a large image of a smile.
You get the Idea.
So, I changed my regex from :d to \b:d\b and expected it to match the whole word if :d is by itself. Guess what? Regular expression now accepts NOTHING.
here is an example of a demonstration of what I'm talking about
How to get regex only for :d ? thanks.
source share