87,985
社区成员
发帖
与我相关
我的任务
分享
Create FUNCTION [dbo].[Regex.Match](@Regex [nvarchar](max), @Input [nvarchar](max))
RETURNS [nvarchar](max) WITH EXECUTE AS CALLER
AS
EXTERNAL NAME [Regex].[MSSQLRegexExtend.RegexExtend].[Match]
var str = "http://baidu.efbdji.net/120.html?a_shfghdjy={madfafgpe}&a_adffdgn={adpsafagion}#bd1ahGDDFjf546a$bd1hjhTfCH56";
var arr = str.match(/[#&=\$\?]bd[^#&=\$\?]+/ig);
for(var i = 0, len = arr.length; i < len; i++){
arr[i] = arr[i].slice(1);
}
alert(arr);