Results 1 to 4 of 4
  1. #1
    2 Star Lounger
    Join Date
    Feb 2001
    Location
    McLean, VA
    Posts
    125
    Thanks
    4
    Thanked 0 Times in 0 Posts
    The documents I edit include acronyms enclosed in parentheses. I normally have good enough luck searching for these acronyms by keying on the left parenthesis only. But some documents use lots of parentheses for mathematical formulas, which makes it tedious to search for acronyms in my usual way. Is there a way to search for a left parenthesis followed by two capital letters? I know how to specify an ALL CAPS search criteria while searching for Any Character, but it doesn't seem to work for text that has not had the ALL CAPS attribute assigned to it.

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts
    [quote name='georic1' post='766694' date='22-Mar-2009 11:44']Is there a way to search for a left parenthesis followed by two capital letters? I know how to specify an ALL CAPS search criteria while searching for Any Character, but it doesn't seem to work for text that has not had the ALL CAPS attribute assigned to it.[/quote]
    You could try a wildcard search. For this, you need to use the More button to expand the Find dialog, if it is not already expanded, check the "Use wildcards" box, and use a pattern similar to the following:
    Code:
    \([A-Z]{2}*\)
    That specifies an opening parenthesis, two capital letters, then 0 or more of any characters, then a closing parenthesis. The backslashes are to indicate that the parentheses should be interpreted literally, rather than interpreted as a grouping.

    Does that match what you need?

    Unfortunately, when you next want to do a case-insensitive search, you will need to uncheck the "Use wildcards" box. If it gets to be too much of a headache, you could create a macro to do the search and clear the box for the next one.

  3. #3
    2 Star Lounger
    Join Date
    Feb 2001
    Location
    McLean, VA
    Posts
    125
    Thanks
    4
    Thanked 0 Times in 0 Posts
    [quote name='jscher2000' post='766698' date='22-Mar-2009 15:25']You could try a wildcard search. For this, you need to use the More button to expand the Find dialog, if it is not already expanded, check the "Use wildcards" box, and use a pattern similar to the following:
    Code:
    \([A-Z]{2}*\)
    That specifies an opening parenthesis, two capital letters, then 0 or more of any characters, then a closing parenthesis. The backslashes are to indicate that the parentheses should be interpreted literally, rather than interpreted as a grouping.

    Does that match what you need?

    Unfortunately, when you next want to do a case-insensitive search, you will need to uncheck the "Use wildcards" box. If it gets to be too much of a headache, you could create a macro to do the search and clear the box for the next one.[/quote]

  4. #4
    2 Star Lounger
    Join Date
    Feb 2001
    Location
    McLean, VA
    Posts
    125
    Thanks
    4
    Thanked 0 Times in 0 Posts
    Yes, thanks Jefferson. That was exactly what I needed to search for the acronyms!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •