Re: Regex On Your Tombstone?
by LanX (Sage) on May 19, 2021 at 19:52 UTC
|
| [reply] [d/l] |
|
Ladies and gentlemen, after due consideration, I believe we have a winner. Bonus points for the ascii art. :-)
| [reply] |
|
| [reply] [d/l] |
|
Bravo! (I had to log-in just to up-vote this)
| [reply] |
|
| [reply] |
Re: Regex On Your Tombstone?
by Fletch (Bishop) on May 19, 2021 at 14:37 UTC
|
$socrates =~ m{I drank what\?};
Edit: reference for those that might need it.
The cake is a lie.
The cake is a lie.
The cake is a lie.
| [reply] [d/l] |
Re: Regex On Your Tombstone?
by LanX (Sage) on May 19, 2021 at 19:45 UTC
|
| [reply] [d/l] |
Re: Regex On Your Tombstone?
by jo37 (Chaplain) on May 19, 2021 at 19:32 UTC
|
while (/(*FAIL)/) {
redo;
}
END {
/(*ACCEPT)/;
}
Greetings, -jo
$gryYup$d0ylprbpriprrYpkJl2xyl~rzg??P~5lp2hyl0p$
| [reply] [d/l] |
Re: Regex On Your Tombstone?
by VinsWorldcom (Prior) on May 19, 2021 at 18:42 UTC
|
Again, not REGEX, but ...
return bless $self, $class
Reincarnation? | [reply] [d/l] |
Re: Regex On Your Tombstone?
by Discipulus (Canon) on May 20, 2021 at 06:17 UTC
|
| [reply] |
Re: Regex On Your Tombstone?
by salva (Canon) on May 21, 2021 at 16:52 UTC
|
s/^.*$//ms
| [reply] [d/l] |
Re: Regex On Your Tombstone?
by cavac (Vicar) on May 28, 2021 at 15:50 UTC
|
s/cavac//g
Edit: Really a shame that the "e" modifier expects an expression, otherwise i could have used s/cavac//gone. Oh well...
perl -e 'use Crypt::Digest::SHA256 qw[sha256_hex]; print substr(sha256_hex("the Answer To Life, The Universe And Everything"), 6, 2), "\n";'
| [reply] [d/l] [select] |
|
DB<15> $_="cavac"
DB<16> s/cavac//rip
DB<17> p
cavac
update
FWIW: I checked for synonyms for "dead", but since "e" is the most common letter in Ænglish ...
| [reply] [d/l] [select] |
|
Hmm, the alternative would be to make the whole thing Terry Pratchett style and make sure the name is bounced around in the protocol overhead forever.
s/(cavac)/"GNU $1"/
I actually do something like this in my Net-Clacks IPC for a couple of people.
perl -e 'use Crypt::Digest::SHA256 qw[sha256_hex]; print substr(sha256_hex("the Answer To Life, The Universe And Everything"), 6, 2), "\n";'
| [reply] [d/l] [select] |
|
| [reply] [d/l] |
Re: Regex On Your Tombstone?
by 1nickt (Canon) on May 19, 2021 at 15:17 UTC
|
Not a regexp but I plan to have "He sure flipped a lot of bits" on mine.
The way forward always starts with a minimal test.
| [reply] |
|
He sure flipped a lot of bits
You might as well get a Spoonerism in there too:
He sure bipped a lot of flits.
-QM
--
Quantum Mechanics: The dreams stuff is made of
| [reply] |
Re: Regex On Your Tombstone?
by QM (Parson) on May 31, 2021 at 15:18 UTC
|
s/.*//m
Besides the obvious language puns, a golfed Busy Beaver one-liner would be funny and deep. Heck, even the prime finder regex would be interesting.
</code>
-QM
--
Quantum Mechanics: The dreams stuff is made of
| [reply] [d/l] |
Re: Regex On Your Tombstone?
by bibliophile (Prior) on Jul 15, 2021 at 19:08 UTC
|
I'm not done yet...
s/\eLife/\rLife/;
| [reply] [d/l] |
Re: Regex On Your Tombstone?
by Perlbotics (Bishop) on May 20, 2021 at 17:28 UTC
|
"Hier liegen meine Gebeine..." =~ /[Ee]\s+\w{2}b(\w+?)(\w)\b/ and die "ich wollt$2, $2s wär$2n d$1$2!"
Doesn't rhyme much in English: Here lie my bones, I wished it were yo(u)rs.
Wikipedia thinks it's by this guy.
| [reply] [d/l] |