Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Regexp substitution on variable-length ranges with embedded code?

by Fletch (Bishop)
on May 26, 2021 at 13:53 UTC ( [id://11133066]=note: print w/replies, xml ) Need Help??


in reply to Re: Regexp substitution on variable-length ranges with embedded code?
in thread Regexp substitution on variable-length ranges with embedded code?

I saw this and was going to reply with something to the effect of Set::IntSpan but I was too late and mine wouldn't have had as clever a trick with that closure coderef . . . bah.

Also as far as the original question, IMHO most times if you're thinking about embedding code inside your regexen you're pretty well already deep into (quasi-apocryphical) JWZ-quote / xkcd 1171 territory.

The cake is a lie.
The cake is a lie.
The cake is a lie.

  • Comment on Re^2: Regexp substitution on variable-length ranges with embedded code?

Replies are listed 'Best First'.
Re^3: Regexp substitution on variable-length ranges with embedded code?
by LanX (Saint) on May 28, 2021 at 15:25 UTC

      I always had an admiration for that cat; solely based on his Netscape exit letter. After reading that roundup I must remark: Anyone who can earnestly write, “Perl is mostly terrible, maybe Java will save us,” cannot be taken seriously.

        I'm sure you mean Jamie Zawinski not "the" Friedl.

        I only admired Friedl so far, but I am now realising Zawinski was behind XEmacs AND bought a night club.

        > Anyone who can earnestly write, “Perl is mostly terrible, maybe Java will save us,” cannot be taken seriously.

        First law of funny people is that it suddenly becomes irony if it's not funny anymore...

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11133066]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2024-04-23 13:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found