I need to remove some html markup that occurs inside an img tag. This string occurs, with different numerals
id="BLOGGER_PHOTO_ID_5324252539155647458"
in hundreds of WordPress posts, and this regex (when used in the plugin Search RegEx http://urbangiraffe.com/plugins/search-regex/)
id="BLOGGER_PHOTO_ID_"(.*?)""
throws a “Invalid regular expression: Delimiter must not be alphanumeric or backslash” error.
The (.*?) is a function that the RegEx plugin uses to match all characters. I.e., this
<a href="(.*?)"> used in the plugin matches all characters in the href link between the < and the >
What do I need to escape?
That’s lines, which remove lines such id=”BLOGGER_PHOTO_ID_5324252539155647458″ from variable $value
And every regular expresiion must be with delimiters – here is more