Need to add ")' to a varying phrase

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
 
P

Peter A

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.
 
J

Jay Freedman

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top