Javascript examples for RegExp:RegExp Match
Regular expression checking for "value<something>value"
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript"> window.onload=function(){/* www . j a v a 2 s .co m*/ var string = "some chars <something> somechars" var res = string.match(/<something>/g); console.log(res); } </script> </head> <body> </body> </html>