How do I do a massive apply by adding
";
after the end of each line that looks like this (but ending in various numbers)
$server = "https://111.202.69.5
Thank you.
Massive apply
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm
There is no general mechanism in TextPad to use a list of words in this way, but if the list is not too long you can do this:
This assumes you are using Posix regular expression syntax:
If you want to get more deeply into them, a standard reference in general is
Friedl, Jeffrey E F
Mastering Regular Expressions, 2nd ed
O'Reilly, 2002
ISBN: 0596002890
http://regex.info/
But be aware that TextPad's regular expression recogniser is rather weak by the current standards of these things. The one WildEdit (http://www.textpad.com/products/wildedit/) uses is much better.
(Make sure the list ends with the last bad word, not with a |.)Find what: \<(badword1|badword2|badword3|...)\>
Replace with: {\0}
[X] Regular expression
This assumes you are using Posix regular expression syntax:
There are many regular expression tutorials on the net.Configuration | Preferences | Editor
[X] Use POsix regular expression syntax
If you want to get more deeply into them, a standard reference in general is
Friedl, Jeffrey E F
Mastering Regular Expressions, 2nd ed
O'Reilly, 2002
ISBN: 0596002890
http://regex.info/
But be aware that TextPad's regular expression recogniser is rather weak by the current standards of these things. The one WildEdit (http://www.textpad.com/products/wildedit/) uses is much better.
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm