Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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');
//=> true

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