{"name":"unicoderegexp","description":"Regular expressions for various Unicode character classes extracted from XRegExp","keywords":["unicode","regular expression","regexp","regex","characters","printable"],"scripts":{"prepublish":"make lint test","test":"make lint test"},"version":"0.1.0","engines":{"node":">=0.4.0"},"dependencies":{"one-validation":"=0.4.2","passerror":"=0.0.1","underscore":"=1.3.3","xregexp":"=1.5.0","ain2-papandreou":"=0.1.5"},"optionalDependencies":{"ain2-papandreou":"=0.1.5"},"devDependencies":{"expect.js":"=0.2.0","jshint":"=2.1.4","mocha":"=1.12.0"},"main":"lib/unicodeRegExp.js","repository":{"type":"git","url":"svn+ssh://git.one.com/git/node-unicoderegexp.git"},"_id":"unicoderegexp@0.1.0","dist":{"shasum":"01cde13e42bb4c2aeb4d59d52d54c92d66544432","tarball":"http://registry-npm.ywwl.com/unicoderegexp/download/unicoderegexp-0.1.0.tgz","integrity":"sha512-BIaxS0bIQbiP9euMdzHaNOGGFddCrpWSuGhP0PUu3vQdRIjYOCRS9R6UbcIckdUQom0BkXnet7zH6d5AoM+dRw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF+BTZF5S2r+NIONqlb/LTaxqw3JyGjNq+Vs8HuNkf4OAiAS+RhGs0RgS4vrURAsqeMc2BQrL9IcUpeetP2pKYw40w=="}],"size":2464,"noattachment":false,"key":"/unicoderegexp/-/unicoderegexp-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"papandreou","email":"andreas@one.com"},"maintainers":[{"name":"papandreou","email":"andreas@one.com"}],"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":1386947760342,"_cnpm_publish_time":1386947760342,"dist-tags":{"latest":"0.4.1"}}