in reply to Re: Applying a RegEx in a variable
in thread Applying a RegEx in a variable
Well, your way of taking it aparts breaks much too easy, e.g. on
But why shouldn't you use eval (what you call 'requoting', a rather strange expression imho), that's what it is made for. Don't reinvent the wheel.m#bla# /bla\// /bla/g # as you already mentioned ...
In the end, you are trying to parse Perl and as the saying goes only perl can parse Perl (or was it PERL can parse perl? :).
Being extremley cautious about the content of anything you eval, however, is a totally different issue ...
-- Hofmator
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Applying a RegEx in a variable
by George_Sherston (Vicar) on Aug 10, 2001 at 17:56 UTC | |
by Hofmator (Curate) on Aug 10, 2001 at 18:47 UTC | |
by George_Sherston (Vicar) on Aug 10, 2001 at 19:16 UTC | |
|
Re: Re: Re: Applying a RegEx in a variable
by ChOas (Curate) on Aug 10, 2001 at 16:22 UTC | |
by Hofmator (Curate) on Aug 10, 2001 at 16:37 UTC |