1. 首页
  2. 编程语言
  3. 其他
  4. JavaScript正则表达式Xeger.zip

JavaScript正则表达式Xeger.zip

上传者: 2020-06-20 21:34:56上传 ZIP文件 6KB 热度 21次
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
下载地址
用户评论