Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-23-2014, 09:58 AM
Ulodesk Ulodesk is offline Wildcard Find and Replace Windows 7 64bit Wildcard Find and Replace Office 2013
Word 2013 Expert Cert
Wildcard Find and Replace
 
Join Date: Sep 2009
Location: Virginia
Posts: 866
Ulodesk is on a distinguished road
Default 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.
Reply With Quote
  #2  
Old 06-23-2014, 10:26 AM
Cosmo Cosmo is offline Wildcard Find and Replace Windows Vista Wildcard Find and Replace Office 2007
Competent Performer
 
Join Date: Mar 2012
Posts: 240
Cosmo is on a distinguished road
Default

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
Reply With Quote
Reply

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
Wildcard Find and Replace 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
Wildcard Find and Replace How to replace this word file using wildcard zhangzujin361 Word 1 01-18-2014 08:02 PM
Wildcard Find and Replace Bad view when using Find and Find & Replace - Word places found string on top line paulkaye Word 4 12-06-2011 11:05 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:58 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft