in reply to extracting variables from regex
echo 12.34.56.78 | perl -MSocket -ne "printf('%08X',unpack('N',inet_aton(\$_)))"Sometimes people get caught up in a situation not unlike "when all you have is a regex, everything looks like a pattern". Especially with e-mail addresses and URLs.
|
|---|