Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width">
- <title>JS Bin</title>
- </head>
- <body>
- <script id="jsbin-javascript">
- a = 'test OuT1 VS In2 blah'
- match = a.match(/OUT(\d).*IN(\d)/i)
- console.log(match)
- </script>
- <script id="jsbin-source-javascript" type="text/javascript">a = 'test OuT1 VS In2 blah'
- match = a.match(/OUT(\d).*IN(\d)/i)
- console.log(match)</script></body>
- </html>
Add Comment
Please, Sign In to add comment