2026-09-28 19:30 UTC
Expressions
cross-posted from: https://lemmy.world/post/52447554
Replies (8)
-
@akunohana@piefed.blahaj.zone 2026-09-28 20:10
-
@aMockTie@piefed.world 2026-09-28 20:31
Why waste time doing any matching if wantarray == false? Just do: if(!wantarray) { return 1; } Before any matching happens, or if you only want one return statement set the value of a variable in if(!wantarray)/elsif(regex) and return that variable at the end.
-
@death_to_carrots@feddit.org 2026-09-28 20:49
If regular expressions are your solution, than your problem is wrong.
-
@Aatube@lemmy.dbzer0.com 2026-09-28 21:09
none of the meat of the regex shown, 0/10
-
@rockSlayer@lemmy.blahaj.zone 2026-09-28 21:49
-
@sit@lemmy.dbzer0.com 2026-09-28 21:56
Doggy is not smiling but trying to lose heat. Doggy is the real regular expression
-
@MaggiWuerze@feddit.org 2026-09-28 22:06
That’s just sad expression with extra steps
-
@naeap@sopuli.xyz 2026-09-28 22:16
At least the cat is happy again now after getting adopted I’ll forever be sad trying to understand the regex I’ve written myself…