Regular Expression Testing

Enter your target text and regular expression for a text REPLACE. See how this works in ColdFusion, Java, and Javascript. The regular expression will automatically be translated to use "\" or "$" depending on the language.

Target Text:

Regular Expression:

Regular Expression Replace:

ColdFusion Result - REReplace():

Translated for CF:
(sexy)(?= legs)  »  very \1

Java Result - ToString().ReplaceAll():

Translated for Java:
(sexy)(?= legs)  »  very $1

JavaScript Result - replace():

Translated for JavaScript:
(sexy)(?= legs)  »  very $1