View Single Post
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Need to select a varying word phrase

With the wildcard option set replace
(|N|*)([^13^l])
with
\1|\2
http://www.gmayor.com/replace_using_wildcards.htm

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


bossmansmith wrote:
example:
N|(45.56) Talk to John

ask about gym

i need to be able to select this entire line beginning with |N|and
add | to the end of just that line without changing the "ask about
gym" line to look like this
N|(45.56) Talk to John|

ask about gym

the syntax for the line i want to add the | to always begins with |N|
so maybe some how to enter in find |N| wildcards to get to end of line
and replace with ^&|

i found out that ^& lets you replace the search word with inself