sea.js 正则解析
"(?:\\"|[^"])*"|‘(?:\\‘|[^‘])*‘|\/\*[\S\s]*?\*\/|\/(?:\\\/|[^\/\r\n])+\/(?=[^\/])|\/\/.*|\.\s*require|(?:^|[^$])\brequire\s*\(\s*(["‘])(.+?)\1\s*\)
"(?:\\"|[^"])*" 匹配"\""
‘(?:\\‘|[^‘])*‘ 匹配‘\‘‘
\/\*[\S\s]*?\*\/ 匹配\**\
\/(?:\\\/|[^\/\r\n])+\/(?=[^\/]) 匹配正则表达//
\/\/.* 匹配//
\.\s*require 匹配.require
(?:^|[^$])\brequire\s*\(\s*(["‘])(.+?)\1\s*\) 匹配require(‘d‘)
原文:http://www.cnblogs.com/yc-code/p/5040480.html