in reply to Re: Re: Matching nested begin/ends
in thread Matching nested begin/ends
It's the same that /\d/ is *not* a correct regex to test if a string is a number. It's a test to see if a string contains a number. But if all you want to know is whether a string contains a begin/end delimited substring, all you need is /begin.*end/. No recursion required.
Abigail
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Matching nested begin/ends
by jryan (Vicar) on Aug 02, 2002 at 23:04 UTC | |
by Abigail-II (Bishop) on Aug 05, 2002 at 10:08 UTC |