如何在不同的单词周围找到一个单词? [英] How to find a word within different word around?
问题描述
标题可能很糟糕:P我没有找到更好的东西
然而这是我的问题: -
<记事本中有
有不同的刷新率输入,例如有
刷新率=100
< br $> b $ b
&
刷新率=75
等...
i只需点击一下就可以替换它们但我不知道怎么回事
更多描述
有很多不同的刷新率输入,我想用一个输入替换它们
ex:
refreshrate = 55
refreshrate =45
refreshrate =100
将它们全部替换为 - > refreshrate =60
感谢您的帮助
我尝试过:
我试图通过周围的单词检测来替换不同的输入
在你的评论中,你问你是否可以用Notepad ++做到这一点。是的你可以! Notepad ++支持使用正则表达式进行查找和替换。
这是与你想要的字符串匹配的正则表达式:
< pre lang =text> refreshrate =\d {1,3}
\d {1,3}
表示1到3位数。所以这个正则表达式将匹配refreshrate =45
,refreshrate =100
等。在替换字段中,把refreshrate =60
。
hi, the title might sucks :P i didn't find anything better
however this is my question:-
in notepad there are different refresh rate inputs, for example there are
Refresh Rate="100"
&
Refresh Rate="75"
etc...
i want to replace them all with one click but i don't know how
more describe
there are many different refreshrate inputs, i want to replace them all with one input
ex:
refreshrate="55"
refreshrate="45"
refreshrate="100"
replace them all to -> refreshrate="60"
thanks for help
What I have tried:
i'm trying to replace different input by detect it by words around it
In your comment, you ask if you can do it with Notepad++. Yes, you can! Notepad++ supports the use of regular expressions for find and replace.
Here is the regular expression that will match the strings you want:
refreshrate="\d{1,3}"
\d{1,3}
means "1 to 3 digits". So this regular expression will matchrefreshrate="45"
,refreshrate="100"
, etc. In the Replace field, putrefreshrate="60"
.
这篇关于如何在不同的单词周围找到一个单词?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!