Regular expression checking for "value<something>value" - Javascript RegExp

Javascript examples for RegExp:RegExp Match

Description

Regular expression checking for "value<something>value"

Demo Code

ResultView the demo in separate window

<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>

Related Tutorials