Find [ or ] but not [ ]

  • Thread starter Thread starter billob
  • Start date Start date
B

billob

I need to know how to find [ ] with their enclosed content which is always 2
- 10 characters. If there are any unclosed [ or unpoened ] I want WORD 2003
FIND to tell me where they are.

I have a large document with about 2000 ] and 1999 [. I am trying to locate
the site of the missing character.
 
Use a wildcard search for
\[[a-z ]{2,10}[!\]]
which will find all lower case characters and spaces numbering between 2 and
10 not terminated by a bracket. You can add to the search list according to
what the brackets may contain. See
http://www.gmayor.com/replace_using_wildcards.htm

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

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

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