简体   繁体   English

使用正则表达式匹配Notepad ++中的字符串

[英]Use regular expression to match a string in Notepad++

I used a following regular expression to find some strings in different files opened using Notepad++.But getting error box saying invalid regular expression 我使用以下正则表达式在使用Notepad ++打开的不同文件中找到一些字符串。但是出现错误框,提示无效的正则表达式

<Variable Id="File" Value=(*)/>

The possible values that iam trying to match are. 我试图匹配的可能值是。

 <Variable Id="File" Value="null"/>
 <Variable Id="File" Value="autorun.ini"/>

Please help 请帮忙

Just added a . 刚刚添加了一个.

Use this regex: 使用此正则表达式:

<Variable Id="File" Value=(.*)/>

.* means match all character .*表示匹配所有字符

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM