Finding Acros with Find/Replace

B

~ Bruce ~

I wonder how you can search for acronyms [2 or more capitalized letters]
without simply finding the first letter of each sentence?

Thanx a heap!
 
K

Klaus Linke

~ Bruce ~ said:
I wonder how you can search for acronyms [2 or more capitalized letters]
without simply finding the first letter of each sentence?


Hi Bruce,

Expand the dialog if necessary, check "Match wildcards", and use
Find what: <[A-Z]{2,}>

[A-Z] matches any letter between A and Z,
{2,} matches 2 or more of them.
< matches the start of a word, > the end of a word.

The <word anchors> probably aren't necessary, but can't hurt.

I sometimes use that search to format acronyms with "small caps"... using
either the font formatting or a character style in "Replace with".

Regards,
Klaus
 

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