advanced replace

  • Thread starter Thread starter Good Ghost
  • Start date Start date
G

Good Ghost

Ok, so I want to find in text phrases like:

12%
15%
76%

and I want to replace it to:

ca. 12%
ca. 15%
ca. 76%

Is there any way to do that? If so, how?

Regards,
goodghost
 
You can perform a wildcard search:

Press Ctrl+H.

Click the More button, and check the "Use wildcards" option.

"Find what": [1-9]@%
"Replace with: ca. ^&

Click Replace All.

Note that this assumes that the percentages does not include a decimal
sign.

--
Stefan Blom
Microsoft Word MVP


in message
news:[email protected]...
 
You can perform a wildcard search:

Press Ctrl+H.

Click the More button, and check the "Use wildcards" option.

"Find what": [1-9]@%
"Replace with: ca. ^&

Click Replace All.

Note that this assumes that the percentages does not include a decimal
sign.

--
Stefan Blom
Microsoft Word MVP

in message



Ok, so I want to find in text phrases like:
12%
15%
76%
thx, it works perfect
 
You need a wildcard search for

([0-9]{1,2}%)
replace with
ca. \1

this will however add another ca. to any two digit percentage that already
has ca. in front
Seehttp://www.gmayor.com/replace_using_wildcards.htm

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web sitewww.gmayor.com
Word MVP web sitehttp://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>



Good said:
Ok, so I want to find in text phrases like:
12%
15%
76%
thx, it works ;-)
 
You are welcome.

--
Stefan Blom
Microsoft Word MVP


in message
You can perform a wildcard search:

Press Ctrl+H.

Click the More button, and check the "Use wildcards" option.

"Find what": [1-9]@%
"Replace with: ca. ^&

Click Replace All.

Note that this assumes that the percentages does not include a decimal
sign.

--
Stefan Blom
Microsoft Word MVP

in message



Ok, so I want to find in text phrases like:
12%
15%
76%
thx, it works perfect
- Poka cytowany tekst -
 

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

Back
Top