Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

xml-char-classes

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xml-char-classes

Regular expressions for matching against the XML Character Classes

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
136K
increased by20.6%
Maintainers
1
Weekly downloads
 
Created
Source

xml-char-classes Build Status

Regular expressions for matching against the XML Character Classes

Install

$ npm install --save xml-char-classes

Usage

var xmlCharClasses = require('xml-char-classes');

console.log(xmlCharClasses.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]/

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

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

License

MIT © Sindre Sorhus

Keywords

FAQs

Package last updated on 27 Mar 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc