regexp-match

This is a regexp demo for javascript, you can learn RegExp from next list. You can submit code that you think it's useful for others.

Usage no npm install needed!

<script type="module">
  import regexpMatch from 'https://cdn.skypack.dev/regexp-match';
</script>

README

regexp-match

This is a regexp demo for javascript, you can learn RegExp from next list.
You can submit code that you think it's useful for others.
And you also can submit issue if you have a problem with RegExp

install

npm install regexp-match

test

mocha

API

singleQuotes

Match single quotes

'a',
'a\'a',
'a\\'

doubleQuotes

Match double quotes

htmlStartTag

Match html start tag

<div>
<div class="cls">

htmlEndTag

Match html end tag

</div>

blockComment

/* block comment */

lineComment

// line comment

email

liaowei08@gmail.com

ip

10.2.240.8

url

http://127.0.0.1:5389/webapp