here's a suggestion - although I did not try it.

[! $expr="[^-]+"; !]
[- $testdata=~m!$expr!go; -]

if not - probably can work around it by placing this code in
a separate module and calling it with embperl.

looks like we need some kind of embperl escape character.
no matter what you choose for embperl delimiters it can be broken
somewhere.

cliff rayman
genwax.com

Steve Willer wrote:

> On Tue, 9 Nov 1999, David Bushong wrote:
>
> > I was wondering (as Embperl embraces so very many hacks for the sake of
> > usefulness =) if it would be considered favorable to add a special case
> > for -] occurring inside of a regexp to be _not_ considered the end of
> > a embedded perl block.
>
> Ouch! Just last night, I had spent a good half-hour or perhaps even an
> hour trying to make a simple regular expression work. It had [^-] in it,
> and that's where the problem was (it said the replace spec was not
> terminated or something).
>
> Well, now I know.

Reply via email to