All Projects → stevemao → html-comment-regex

stevemao / html-comment-regex

Licence: MIT license
Regular expression for matching HTML comments

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to html-comment-regex

dobbi
An open-source NLP library: fast text cleaning and preprocessing
Stars: ✭ 21 (+40%)
Mutual labels:  string, text, regexp
String.prototype.matchAll
Spec-compliant polyfill for String.prototype.matchAll, in ES2020
Stars: ✭ 14 (-6.67%)
Mutual labels:  string, regexp, match
regXwild
⏱ Superfast ^Advanced wildcards++? | Unique algorithms that was implemented on native unmanaged C++ but easily accessible in .NET via Conari (with caching of 0x29 opcodes +optimizations) etc.
Stars: ✭ 20 (+33.33%)
Mutual labels:  text, regexp, match
Pytest Patterns
A couple of examples showing how pytest and its plugins can be combined to solve real-world needs.
Stars: ✭ 24 (+60%)
Mutual labels:  test, pattern
Stringi
THE String Processing Package for R (with ICU)
Stars: ✭ 204 (+1260%)
Mutual labels:  text, regexp
is-match
Create a matching function from a glob pattern, regex, string, array or function.
Stars: ✭ 20 (+33.33%)
Mutual labels:  test, match
textics
📉 JavaScript Text Statistics that counts lines, words, chars, and spaces.
Stars: ✭ 36 (+140%)
Mutual labels:  string, text
comment-mark
Interpolate strings with HTML comment markers!
Stars: ✭ 21 (+40%)
Mutual labels:  string, comment
jest-serializer-html-string
A better Jest snapshot serializer for plain html strings
Stars: ✭ 17 (+13.33%)
Mutual labels:  string, test
Attributedstring
基于Swift插值方式优雅的构建富文本, 支持点击长按事件, 支持不同类型过滤, 支持自定义视图等.
Stars: ✭ 294 (+1860%)
Mutual labels:  string, text
matched
Glob matching with support for multiple patterns and negation. Use `~` in cwd to find files in user home, or `@` for global npm modules.
Stars: ✭ 25 (+66.67%)
Mutual labels:  pattern, find
Input Mask Android
User input masking library repo.
Stars: ✭ 1,060 (+6966.67%)
Mutual labels:  text, pattern
Input Mask Ios
User input masking library repo.
Stars: ✭ 494 (+3193.33%)
Mutual labels:  text, pattern
mesh
Решает тесты с МЭШ.
Stars: ✭ 19 (+26.67%)
Mutual labels:  test, find
allot
Parse placeholder and wildcard text commands
Stars: ✭ 51 (+240%)
Mutual labels:  text, pattern
subst
Search and des... argh... replace in many files at once. Use regexp and power of Python to replace what you want.
Stars: ✭ 20 (+33.33%)
Mutual labels:  text, regexp
justified
Wrap, align and justify the words in a string.
Stars: ✭ 30 (+100%)
Mutual labels:  string, text
stringx
Drop-in replacements for base R string functions powered by stringi
Stars: ✭ 14 (-6.67%)
Mutual labels:  text, regexp
Prestyler
Elegant text formatting tool in Swift 🔥
Stars: ✭ 36 (+140%)
Mutual labels:  string, text
route pattern generator
A Dart static code generator that produces matchers and builders from route uri patterns.
Stars: ✭ 31 (+106.67%)
Mutual labels:  pattern, match

NPM version Build Status

Regular expression for matching HTML comments

Install

$ npm install --save html-comment-regex

Usage

var htmlCommentRegex = require('html-comment-regex');

htmlCommentRegex.test('<!DOCTYPE html><!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--><html lang="en"><head><meta charset="UTF-8"><title>Document</title></head><body></body></html>');
//=> true

htmlCommentRegex.test('<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><title>Document</title></head><body></body></html>');
//=> false

License

MIT © Steve Mao

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].