xml-char-classes
Regular expressions for matching against the XML Character Classes
Last updated 3 years ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install xml-char-classes 
SYNC missed versions from official npm registry.

xml-char-classes

Regular expressions for matching against the XML Character Classes

Install

$ npm install xml-char-classes

Usage

import xmlCharacterClasses from 'xml-char-classes';

console.log(xmlCharacterClasses.digit);
//=> /[0-9\u0660-\u0669\u06F0-\u06F9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE7-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29]/

xmlCharacterClasses.letter.test('unicorn');
//=> true

xmlCharacterClasses.letter.test('#');
//=> false

API

xmlCharClasses

Contains the following regular expressions for matching the different character classes in the XML spec.

  • letter
  • baseChar
  • ideographic
  • combiningChar
  • digit
  • extender

Current Tags

  • 3.0.0                                ...           latest (3 years ago)

4 Versions

  • 3.0.0                                ...           3 years ago
  • 2.0.0                                ...           7 years ago
  • 1.0.0                                ...           10 years ago
  • 0.1.0                                ...           11 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (3)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE