Speed up development with full-stack environments for every branch.

Learn More

JSVerbalExpressions Example - search and replace

Forked from JSVerbalExpressions Example - check for valid email.

8 Runs 19 Views 0 Copies
Saved

Saved

gtsolutions 373

gtsolutions
published 4 years ago

<html>
    <head>
        <meta charset="utf-8">
        <title>JSVerbalExpressions Example - search and replace</title>
        <script type="text/javascript" src="js/VerbalExpressions.js"></script>
    </head>

    <body>
        <script>
            var string = "We have a red house";
            var result = VerEx().find( "red" ).replace(string , "blue" );
            alert( result );
        </script>
    </body>
</html>
Please login/signup to get access to the terminal.

Your session has timed out.

Dismiss (the page may not function properly).