简体   繁体   中英

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

<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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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