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 ]]

thank you

Re: WildCard by Doug

Doug
Tue Apr 01 05:25:58 PDT 2008

Have you tried

\[\[*\[\[*\[*\]\] *\]\]

Note that you have an uneven number of open and closing []

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"Lachezar Parvov" <Lachezar Parvov@discussions.microsoft.com> wrote in
message news:519DC8B5-CD28-4610-AA37-22FCB462D4A5@microsoft.com...
> 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 ]]
>
> thank you



RE: WildCard by JeanGuyMarcil

JeanGuyMarcil
Tue Apr 01 06:26:02 PDT 2008

"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
\[\[*\]\]*\]\]
???

RE: WildCard by LachezarParvov

LachezarParvov
Tue Apr 01 06:36:00 PDT 2008

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
> \[\[*\]\]*\]\]
> ???

Re: WildCard by Tony

Tony
Tue Apr 01 07:28:18 PDT 2008

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" <LachezarParvov@discussions.microsoft.com> 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
>> \[\[*\]\]*\]\]
>> ???


RE: WildCard by JeanGuyMarcil

JeanGuyMarcil
Tue Apr 01 07:46:01 PDT 2008

"Lachezar Parvov" wrote:

> Yes but If I have this
>
> [[alabaa]]
>
> [[text]]
>
> Will find:
>
> "[[alabaa]]
>
> [[text]]"
>
> not
>
> "[[alabaa]]"
>
> "[[text]]"
>

Try:
\[\[*[!^13]\[\[*\]\][!^13]*\]\]

(This message may appear twice, the silly Web interface disconnected me as I
was sending my reply... Don't know if it got through or not..., so I am
sending it it again...)

Re: WildCard by LachezarParvov

LachezarParvov
Tue Apr 01 07:49:03 PDT 2008

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" <LachezarParvov@discussions.microsoft.com> 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
> >> \[\[*\]\]*\]\]
> >> ???
>
>

RE: WildCard by LachezarParvov

LachezarParvov
Tue Apr 01 07:52:00 PDT 2008

Look this example:
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 ]]


"Jean-Guy Marcil" wrote:

> "Lachezar Parvov" wrote:
>
> > Yes but If I have this
> >
> > [[alabaa]]
> >
> > [[text]]
> >
> > Will find:
> >
> > "[[alabaa]]
> >
> > [[text]]"
> >
> > not
> >
> > "[[alabaa]]"
> >
> > "[[text]]"
> >
>
> Try:
> \[\[*[!^13]\[\[*\]\][!^13]*\]\]
>
> (This message may appear twice, the silly Web interface disconnected me as I
> was sending my reply... Don't know if it got through or not..., so I am
> sending it it again...)

RE: WildCard by JeanGuyMarcil

JeanGuyMarcil
Tue Apr 01 09:13:04 PDT 2008

"Lachezar Parvov" wrote:

> Look this example:
> 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 ]]
>
>
> "Jean-Guy Marcil" wrote:

As Tony suggested, you are now in the realm of macros...

Next time, may I suggest that you post a full sample of the text you are
working with right from the start... This way I would not have wasted your
time posting half-answers...