{"name":"unicoderegexp","description":"Regular expressions for various Unicode character classes extracted from XRegExp","keywords":["unicode","regular expression","regexp","regex","characters","printable"],"scripts":{"prepublish":"make test","test":"make test"},"version":"0.3.1","dependencies":{},"devDependencies":{"mocha":"=1.18.0","unexpected":"2.1.8","xregexp":"=2.0.0"},"main":"lib/unicodeRegExp.js","repository":{"type":"git","url":"git://github.com/One-com/unicoderegexp.git"},"gitHead":"0c1706c72911c68496912304ef70d6254ae5404c","bugs":{"url":"https://github.com/One-com/unicoderegexp/issues"},"homepage":"https://github.com/One-com/unicoderegexp#readme","_id":"unicoderegexp@0.3.1","_shasum":"2173df51f39393789288f5f1aa79e3d9c4b28936","_from":".","_npmVersion":"2.13.2","_nodeVersion":"0.10.38","_npmUser":{"name":"papandreou","email":"andreas@one.com"},"maintainers":[{"name":"papandreou","email":"andreas@one.com"},{"name":"maartenwinter","email":"maarten@mwinter.nl"}],"dist":{"shasum":"2173df51f39393789288f5f1aa79e3d9c4b28936","tarball":"http://registry-npm.ywwl.com/unicoderegexp/download/unicoderegexp-0.3.1.tgz","integrity":"sha512-xd7ypbCKAqGaQynBX2VwxUbOQ9aANg7mKPr4NRPZgqHMpgKtMkaq9dscRmaL2Yt39EVn+X9BzfZAIaplwMJ0RA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDhFYwzxvZiGNyvU/2yl672KcNvWzdrpGmZScWvxDQGdwIhALHZ67TFSpC3Qsw4WStC5ctlyzvHilAVvFa6CQMRoqxl"}],"size":9956,"noattachment":false,"key":"/unicoderegexp/-/unicoderegexp-0.3.1.tgz"},"directories":{},"readme":"unicoderegexp\n=============\n\nVarious regular expressions for unicode character classes (letter,\npunctuation, number, etc.) and helper functions for composing them.\n\nUsed by the [purify](https://github.com/One-com/purify) library.\n\nThe module exports a bunch of useful RegExps each with a single character class in them:\n\n* `letter`\n* `mark`\n* `number`\n* `punctuation`\n* `symbol`\n* `separator`\n* `other`\n* `visible`\n* `printable`\n\n```javascript\nunicodeRegExp.visible.test(\"a\"); // true\nunicodeRegExp.visible.test(\" \"); // false\nunicodeRegExp.visible.test(\"\\u00a0\"); // false -- a non-breaking space is not visible\n```\n\nTo validate an entire string you need to build a new RegExp:\n\n```javascript\nvar visibleStringRegExp = new RegExp('^' + unicodeRegExp.visible.source + '*$');\nvisibleStringRegExp.test(\"foobar\"); // true\nvisibleStringRegExp.test(\"foo bar\"); // false because of the space\n\nunicodeRegExp.removeCharacterFromCharacterClassRegExp(/[æøå]/, 'æ'); // /[\\u00f8\\u00e5]/\nunicodeRegExp.spliceCharacterClassRegExps(/[a-b]/, /[c-d]/); // /[a-bc-d]/\n```\n\nThe info about which characters belong to which classes was taken from the\n[XRegExp](http://xregexp.com/) library and its [Unicode plugin](http://xregexp.com/plugins/#unicode).\n","publish_time":1438941528376,"_cnpm_publish_time":1438941528376,"dist-tags":{"latest":"0.4.1"}}