View Single Post
 
Old 01-28-2014, 02:49 PM
macropod's Avatar
macropod macropod is offline Windows 7 32bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by ChrisBrewster View Post
Below is the string I use to find acronyms. It also finds acronyms that include digits-- the problem being that it also stops on plain old numbers. See if it does you any good.

[ETAOINSRHDLUCMFYWGPBVKXQJZ1234567890_-]{2,}
You should be able to achieve the same with:
[A-Z0-9_-]{2,}
or, if your acronyms always start with a letter:
[A-Z][A-Z0-9_-]{1,}
As for the numbers issue, if you mean it doesn't find complete numbers with thousands separators & decimal points, that's because neither of those is provided for in your Find expression. Problem is, though, that if you do so, it'll also pick up commas and periods.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote