JavaScript正则表达式Xeger.zip
Xeger是更富有表现力的JavaScript正则表达式,Xeger发音为"zeeger"。使用:var xeger = require('xeger');
/* Parsing a URL. Getting the schema, host, path, and url params */
/* Instead of this */
var boringRegex= /(https?)\:\/\/([^\/])(.)\?(.*)/;
/* Write this! */
var coolRegex = xeger(function (x) {
/* schema */
x
下载地址
用户评论