在vscode 中使用正则匹配一类字符
需求:写一个正则匹配 ga360location="xxxxxxxxxxxxxx",其中ga360location=""是固定的,中间的字符可以是任意个数字、字母、下划线,正则用于在vscode中全局筛选到这些字符 ga360location="xxxxxxxxxxxx"
,并且删掉。
正则:
ga360location="[a-zA-Z0-9_]+"
需求:在vscode中
怎么把全局的 https://mockitt.wondershare.com/xxx.html
改为/xxx.html
,
把全局的 https://mockitt.wondershare.com/xxx/