#1
|
|||
|
|||
Wildcard Find and Replace
I am perplexed by an expression I have come across in a tutorial. To find duplicate paragraphs, it is given as
(*^13)\1 In place of the \1, other possibilities are given, such as {2}. I don't understand how this expression for any paragraph (the asterisk) becomes identifiable as a specific paragraph, since it lacks any specifications. Perhaps understanding this will assist my continued learning of how to employ F&R wildcard expressions in new situations. Thank you. |
#2
|
|||
|
|||
The * character represents one or more characters, the ^13 is a paragraph break (carriage return). This means one or more characters followed by a carriage return (a paragraph)
The \1 represents the search pattern found in the first set of parentheses. Thus, a paragraph followed by the exact same paragraph. The same could be done using {2} which means 2 x the preceding pattern. You can find more about wildcards here: http://www.gmayor.com/replace_using_wildcards.htm |
Tags |
search terms, wildcards |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Wildcard Find/Replace deletes extra character | Cosmo | Word | 1 | 06-20-2014 08:49 AM |
Need help using WildCard Find & Replace | Cayce | Word | 1 | 06-09-2014 04:17 PM |
Change characters outside a wildcard while keeping wildcard results | nymusicman | Word VBA | 2 | 04-10-2014 08:17 AM |
How to replace this word file using wildcard | zhangzujin361 | Word | 1 | 01-18-2014 08:02 PM |
Bad view when using Find and Find & Replace - Word places found string on top line | paulkaye | Word | 4 | 12-06-2011 11:05 PM |