Click here to Skip to main content
15,867,453 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
Updated 27-Sep-17 1:09am
v3
Comments
Richard MacCutchan 27-Sep-17 6:48am    
If you mean in notepad.exe then I do not think you can, as it only offers simple text matching. Try finding an application that allows you to use regular expressions.
Member 13432625 27-Sep-17 7:01am    
can i do that with notepad++?
Karthik_Mahalingam 27-Sep-17 7:07am    
use  Reply  button, to post Comments/query to the user, so that the user gets notified and responds to your text.
Karthik_Mahalingam 27-Sep-17 7:07am    
programatically?
Member 13432625 27-Sep-17 7:09am    
yes, it's too hard to do it manually

1 solution

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 match refreshrate="45", refreshrate="100", etc. In the Replace field, put refreshrate="60".
 
Share this answer
 
v2
Comments
Karthik_Mahalingam 27-Sep-17 7:11am    
5
Richard Deeming 27-Sep-17 12:12pm    
\d{2,3} means "1 to 3 digits"

Perhaps that should be \d{1,3}, as per the previous line? :)
Thomas Daniels 27-Sep-17 12:12pm    
Oops. Fixed :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900