Need to add ")' to a varying phrase

  • Thread starter Thread starter bossmansmith
  • Start date Start date
B

bossmansmith

i have info like this:
(55.23
Talk to John
(56.54

and i need to add the ) to only the number phrase (so it looks liek this)
(55.23)
Talk to John
(56.54)

any help would be appreciated

(guess im looking for an option to uses wildcards to find and replace (or
really append to a wildcard pharse) and to actually replace with the find
phrase adding the ) character)

thanks
 
i have info like this:
(55.23
Talk to John
(56.54

and i need to add the ) to only the number phrase (so it looks liek this)
(55.23)
Talk to John
(56.54)

any help would be appreciated

(guess im looking for an option to uses wildcards to find and replace (or
really append to a wildcard pharse) and to actually replace with the find
phrase adding the ) character)

thanks

You can use regular expressions to search for a digit followed by an
end-of-line.
 
bossmansmith said:
i have info like this:
(55.23
Talk to John
(56.54

and i need to add the ) to only the number phrase (so it looks liek
this) (55.23)
Talk to John
(56.54)

any help would be appreciated

(guess im looking for an option to uses wildcards to find and replace
(or really append to a wildcard pharse) and to actually replace with
the find phrase adding the ) character)

thanks

With "Use wildcards" turned on, use this search string in Find What:

(\([0-9]{2}.[0-9]{2})(^13)

and this replacement string:

\1)\2

See http://www.gmayor.com/replace_using_wildcards.htm for more info.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
Back
Top