假设源文件名为test.txt(请自定义)
@echo offfor /f "tokens=2,4 delims==&" %%a in ('type test.txt^|findstr "id=.*&user=.*"') do ( echo;id 是 %%a echo;user 是 %%b)pause
用替换,等号换冒号,&换逗号。转数组取值
var str = "id=11111&user=2222";var reg = /(\d)+/g;str.match(reg);