Group: microsoft.public.word.vba.general
From: =?Utf-8?B?TGFjaGV6YXIgUGFydm92?=
Date: Tuesday, April 01, 2008 9:49 AM
Subject: Re: WildCard

I have currnet text:

[[ text ]]

text

[[text1

]]

text

[[ text [ text ]]

text

[[ text [
text
]]

[[ text [[ text [ text ]] text ]]

I want to find this:

[[ text ]]
and
[[text1

]]

[[ text [[ text [ text ]] text ]]

not
text

and

[[ text [
text
]]

and

[[ text [ text ]]

"Tony Jollans" wrote:

> As far as I can tell you want to find matching outer brackets with zero or
> more inner nested sets of bracketed text.
>
> You can't do that with a single pattern in F&R - you'll need to code it up
> in VBA and apply some logic.
>
> --
> Enjoy,
> Tony
>
> "Lachezar Parvov" wrote in
> message news:0131F882-834C-4CA5-914D-E94806665E2B@microsoft.com...
> > Yes but If I have this
> >
> > [[alabaa]]
> >
> > [[text]]
> >
> > Will find:
> >
> > "[[alabaa]]
> >
> > [[text]]"
> >
> > not
> >
> > "[[alabaa]]"
> >
> > "[[text]]"
> >
> > "Jean-Guy Marcil" wrote:
> >
> >> "Lachezar Parvov" wrote:
> >>
> >> > Hi. I have a problem with wildcard. I use Ms Word 2003 and use to Find
> >> > and
> >> > replace dialog.
> >> >
> >> > I have current text:
> >> >
> >> > text
> >> > [[ text [[ name [ text ]] text ]]
> >> > text
> >> >
> >> > I want to find this [[ text [[ name [ text ]] text ]]
> >> > I use wildcard and this \[\[*\]\] but Word find this [[ name [ text ]]
> >> >
> >> > Plecae help me how I can find [[ text [[ name [ text ]] text ]]
> >>
> >> Have you tried
> >> \[\[*\]\]*\]\]
> >> ???
>
>