in reply to Re: regex question
in thread regex question
$pre= "\\*\\*"; $post = "%%"; $firstchar = substr($post,0,1); $text = "**this is good%% blah **this is bad%%%%%% blah ***this is bad +%%%blah"; @parts = split(/($pre.*?$firstchar*$post)/,$text); foreach $part (@parts) { print "part: $part\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: Re: regex question
by swiftone (Curate) on Oct 18, 2000 at 23:20 UTC | |
by Fastolfe (Vicar) on Oct 18, 2000 at 23:49 UTC |