HomeLog InSource

notes.public

[View] [Short] [Hash] [Raw]
http://stackoverflow.com/questions/10725012/regular-expression-matching-if-the-pattern-is-in-the-beginning-of-a-sentence-th
Regular expression matching if the pattern is in the beginning of a sentence, the end of a sentence is is surrounded by white space

> (^|\\W)mypattern(\\W|$)

We were finding "tags" in the URL anchor fragments. Hopefully this should fix it.

#notetaking
#programming
#regularexpression
#bugs