in reply to Defining your own regex character class

I'm not sure, but what's wrong with a variable $class which is interpolated?

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Wikisyntax for the Monastery

  • Comment on Re: Defining your own regex character class

Replies are listed 'Best First'.
Re^2: Defining your own regex character class
by igoryonya (Pilgrim) on Dec 18, 2017 at 05:58 UTC
    I guess, nothing is wrong, I was just thinking of a way for isolating a variable name from the rest of the regex, i.e. variable name is not terminated.
    Is this possible?: [[:$ipv4:]] or I should do (?:$ipv4)?