Peter Bhat Harkins @pushcx@octodon.social
Follow

Ruby nerd sniping attempt: with a MatchData, how would you remove a named capture? (Example swaps ; for . because autolinking)
"http://example;com:80/foo:80".match(/https?:\/\/([^\;]+\;)+[a-z]+(?<port>:\d+)?(\/|\z)/) -> 't.co/66sO2kch12 <example.com/foo:80>

· Web · 0 · 0