RegExp.input : RegExp Object : Regular Expressions JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Regular Expressions » RegExp Object »

 

RegExp.input







The input property represents the string on which the pattern matching is performed.












<html>
    <body>
    <script language="JavaScript1.2">
    <!--
    function getinput(){
        var myPat = new RegExp("the""i");
        var str = document.form1.mytext.value;
        myArray = myPat.exec(str);
        alert("The RegExp.input is: " + RegExp.input);
    }
    -->
    </script>
    <form name="form1">
    <br><br>
    Enter some Text and click outside:
    <input type="text" name="mytext" size="40" onChange='getinput()'>
    <br>
    <br><br><br><br><br><br><inputtype=name=size=<br><br><inputtype=value=</form>
    </body>
    </html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Regular Expressions
» RegExp Object