Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
$b may not follow $a immediately, there may be something between them.
e.g. $a is 'foo', $b is 'bar', then:
'fooabc' should match
'fooabcdefg' should match
'abcd' should not match
'foobar' should not match
'fooabcbar' should not match
'abcbar' should not match
'fooabcbarefg' should not match
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How do I match a expression start with $a and not contain $b after $a
by strat (Canon) on Jan 28, 2002 at 20:58 UTC | |
|
Re: How do I match a expression start with $a and not contain $b after $a
by Juerd (Abbot) on Jan 28, 2002 at 18:38 UTC | |
by tilly (Archbishop) on Jan 28, 2002 at 18:41 UTC | |
by Anonymous Monk on Jan 29, 2002 at 06:29 UTC | |
|
Re: How do I match a expression start with $a and not contain $b after $a
by Anonymous Monk on Jan 29, 2002 at 06:19 UTC | |
by Anonymous Monk on Jan 29, 2002 at 06:33 UTC |