RegEx Replace With Variable

The $1 and $2 represent the text in capturing groups in the regex. Capturing groups are what is inside parentheses.

http://stackoverflow.com/questions/14059129/search-and-replace-with-regex-with-replace-variables

Advertisements