in reply to Re: Quick Regex Question
in thread Quick Regex Question

Thanks. I got it working both ways.. works great.
What does the e do? ( .. ("H*", $1)/eg; )

I didn't see it in perlre.
tia

Replies are listed 'Best First'.
Re: Re: Re: Quick Regex Question
by chipmunk (Parson) on Feb 08, 2001 at 00:32 UTC
    It turns out that /e is not documented in perlre because /e does not affect the regular expression. Instead, /e is documented in perlop, in the documentation for s/// (near the bottom).
Re: Re: Re: Quick Regex Question
by Fastolfe (Vicar) on Feb 08, 2001 at 00:23 UTC
    Odd; I can't find it documented either. Its purpose is to tell Perl to evaluate the right-hand-side of a substitution, instead of just using it as-is. This lets you put code in the right-hand-side of a substitution instead of just text.