How to replace in a string only where keyword is not inside or in the middle of  tags?
38724
Preg_replace match on word boundery and not in link
62205
Allow under 6 character changes if they are inside code tags
45463
How do I replace all line breaks in a string with  elements?
134297
Need a regex to exclude certain strings
137611
Regex between tags unless escaped
124784
MySQL search and replace some text in a field
1849
RegEx match open tags except XHTML self-contained tags
124883
How to strip HTML tags from a string in SQL Server?
65860
Adding `otherkeywords` in listings - How do I avoid highlighting them inside strings?
8578
How to escape  inside  tags
100154
Match and replace whole words in javascript
101144
How to match, but not capture, part of a regex?
65270
How do I perform string matching and replacements?
6441
How to Truncate a string in PHP to the word closest to a certain number of characters?
68039
How to Regex search/replace only first occurrence in a string in .NET?
68146
How to remove part of a string?
37492
Custom word boundaries in regular expression