正则表达式

/vid[ ]?[=|:][ ]?["|']([^"^']*)/   

[ ]? n个空格

["|']  或

([^"^']*)  非

原文地址:https://www.cnblogs.com/ywc85/p/5109827.html