Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stevemao/html-comment-regex
Regular expression for matching HTML comments
https://github.com/stevemao/html-comment-regex
comment comments find html html5 hypertext-markup-language match pattern re regexp string test text
Last synced: 10 days ago
JSON representation
Regular expression for matching HTML comments
- Host: GitHub
- URL: https://github.com/stevemao/html-comment-regex
- Owner: stevemao
- License: mit
- Created: 2015-05-21T08:09:45.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-10-09T23:10:40.000Z (about 6 years ago)
- Last Synced: 2024-10-19T20:07:37.145Z (18 days ago)
- Topics: comment, comments, find, html, html5, hypertext-markup-language, match, pattern, re, regexp, string, test, text
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 15
- Watchers: 4
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url]
> Regular expression for matching HTML comments
## Install
```sh
$ npm install --save html-comment-regex
```## Usage
```js
var htmlCommentRegex = require('html-comment-regex');htmlCommentRegex.test('Document');
//=> truehtmlCommentRegex.test('Document');
//=> false
```## License
MIT © [Steve Mao](https://github.com/stevemao)
[npm-image]: https://badge.fury.io/js/html-comment-regex.svg
[npm-url]: https://npmjs.org/package/html-comment-regex
[travis-image]: https://travis-ci.org/stevemao/html-comment-regex.svg?branch=master
[travis-url]: https://travis-ci.org/stevemao/html-comment-regex