View Single Post
 
Old 11-11-2012, 01:03 PM
jeffk jeffk is offline Windows 7 64bit Office 2007
Novice
 
Join Date: Jul 2012
Location: North of England, UK
Posts: 29
jeffk is on a distinguished road
Default

Thanks for that, but could you clarify some things in your answer? Actually, quite a lot of it!

Quote:
Originally Posted by gmaxey View Post
The error is because you were trying to define groups 1 and 2 in the replace with field that were never defined in the find what field.
Defining what I want to find with (<*>) (<*>)

  1. My understanding is that <*> means any single word (compared with e.g. <h*t> which would find hot, hat, hit, etc) so <*> <*> would mean any two adjacent words..........am I right so far?
  2. What exactly do the round brackets ( ) do to <*>?

Quote:
If each name in your list of names constitutes a single paragraph then you should have to select the text.

Find: (<*>)( )(<*>)(^13)

  1. Why the ( ) between (<*>) & (<*>)? When I use (<*>) (<*>) in 'find what' & \2 \1 in 'replace with' it works on the selected text
  2. Why the (^13)? I know it means 'carriage return' i.e. new paragraph, but it doesn't seem to be needed when i use (<*>) (<*>) & \2 \1
  3. If I have to select the text to change then surely the applet’s not actually finding anything – I've already told it where to look, no? That might seem like I'm splitting hairs but if, for example, I had a 50 page doc with multiple instances of names I wanted to reverse (either as lists or within sentences), would I have to manually go through & select each before running find/replace?

Quote:
Replace With \3\2\1\4

  1. Why are the numbers in that order?
  2. Why no spaces between each \number pair?

I know I'm asking a lot of questions there, so any that you feel like answering would be much appreciated. Alternatively, could you point me towards any good tutorials/resources on the topic?
Reply With Quote