Prev Demo
Searching A Match With Global And Case-Insensitive Modifiers With The Help Of Match() Method
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title>Demo</title> </head> <body> <h1>Search a amtch with global and case-insensitive modifiers.</h1> <p>Click the below button to search for a Match.</p> <input type="button" value="Match" onclick="Function()" /> <p id="myId"></p> <script> function Function() { var a = "DotNetFunda was introduced in 2007, TechFunda in 2015, ITFUNDA in 2011, myFunda.net is a part of ITFUNDA"; var r = a.match(/Fun/gi); document.getElementById("myId").innerHTML = r; } </script> </body> </html>
Note: We DO NOT save your trial code in our database.
Output