Let’s say you have a html file called file.html and you want to replace “.jpg” to “.png” but only when in a href of anchor…
Let’s say you have a html file called file.html and you want to replace “.jpg” to “.png” but only when in a href of anchor…
Problem: Match strings that contains a single quotation mark ('), but not multiple ones together. Solution: (?<!')'(?!') This is a regex for a single quotation…