in reply to Re: Defining your own regex character class
in thread Defining your own regex character class

I was going to suggest better definitions of $octet (one using pure regexes and one using a code assertion), but I'll refrain from that after having read your last paragraph. ;-)

And, BTW, to the OP: what you're looking for is not called a character class (but this has been pointed out already).

Replies are listed 'Best First'.
Re^3: Defining your own regex character class
by AnomalousMonk (Archbishop) on Dec 18, 2017 at 20:06 UTC
    ... definitions of $octet ... your last paragraph.

    Yeah, I had that in mind as something for a regex novice to play around with, especially in light of the topic of the OP (partial hint, hint).


    Give a man a fish:  <%-{-{-{-<