Regular Expressions 101

Community Patterns

Replace second (or further) html statement in a whole code


Regular Expression
ECMAScript (JavaScript)



This regex replace the second tag content which has the prefix ":". If you want to replace the third, just increase the statement {1} to {2}, and so go on.

Submitted by Caio Oliveira - 10 years ago