Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

257.Advanced search and replace -- How to replace text containing some special symbols in a text file?

User: editor -- 2008-08-25          << 256  258 >>
Hits: 1756
Type: Advanced search and replace   
Search all Advanced search and replace examples
How to replace text containing some special symbols like \/!@#$%^&*()'"~` in a text file?
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
Assume you want to replace all string 0123\/!@#$%^&*()'"~`456789 with NEW_TEXT:
1. ctrl-o open text file
2. ctrl-h open "Replace" dialog
* Enclose the text-to-replace with two single quote, and put it in the "search for pattern" like:

Note: if single quote appear in text-to-replace, you need to put a backslash "\" before it.
* fill in "Replace with pattern" like:

3. click "Replace", done!

Screenshot 1:  Replace_Window

Similar Examples:
How to remove lines containing specified words in a text file? (71%)
How to remove all lines that contain some specific strings in a text file? (69%)
How to remove/delete all symbols in a text file? (61%)
How to extract all lines that contain specific words in a file? (60%)
How to replace a word with a list of words repeatly in a text file? (60%)
How to batch extract specified lines from a text file? (60%)
How to replace a string with one of the specified words randomly in multiple files? (59%)
How to replace or remove 3 lines randomly in a text file? (59%)

Check Demo of Advanced search and replace
123456  12345  1234  quote  symbols  quot  123  special  backslash  slash  replace quote  replace some string  replace all before  two text  text before  replace before  text string  string with