User: jiang nan -- 2024-01-11 << 1466 1468 >> |
Hits: 1775 |
Type: Advanced search and replace |
Search all Advanced search and replace examples |
Description: |
How to get content between a pair of nearest ab bc.That's means no 'ab' or 'bc' can appear between a pair of ab bc,but can include separate 'a' or 'b'.I have tried [^ab],but it expresses excluding separate 'a' or 'b'.Thank you. |
Input Sample: |
anychar a b c ab anychar 3 21 b ab anychar c b .. bc anychar b a.. ab anychar cbz bc anychar ..bc ..ab ..etc..bc ... |
Output Sample: |
ab anychar c b .. bc ab anychar cbz bc ab ..etc..bc |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
1. ctrl-o open text file 2. ctrl-h open replace dialog * set 'search for pattern' to: * set 'replace with pattern' to: * uncheck "Print unmatch units" 3. click "replace", done |
Screenshot 1: Replace_Window |
Similar Examples: |
How to replace the contents between div tags with increasing number? (59%) How to batch rename html files to the content that between a pair of h2 tags? (58%) How to extract content between 2-1000 lines from multiple txt files? (57%) How to extract text between brackets into a file and the rest in another? (57%) How to extract text between specified start and end strings? (55%) How to insert a space between every 80 characters? (53%) How to merge every two lines into one line between (part1) and (partn)? (52%) How to eliminate consecutive return and spaces? (51%) |
Check Demo of Advanced search and replace |
Keywords: |
include separate between unmatch content para print get app means get text between get between search replace file content text between pattern search and replace between search between replace with file content replace file content |