← Home ← Back to /g/

Thread 106397395

31 posts 10 images /g/
Anonymous No.106397395 >>106397471 >>106397484 >>106397603 >>106397639 >>106398262
The Death Note can parse regex. What are you writing?
Anonymous No.106397451 >>106397458 >>106397478 >>106397626
ISRAEL
Anonymous No.106397458
>>106397451
SWEDEN
Anonymous No.106397471 >>106397489
>>106397395 (OP)
Can I use regex to parse the citizenship data of Israel and the membership data of every synagogue and mosque?
Anonymous No.106397475
.*
Anonymous No.106397478
>>106397451
>mexico
se acabó
Anonymous No.106397480
.+
Anonymous No.106397484
>>106397395 (OP)
.*stan$
Anonymous No.106397489
>>106397471
No, use a proper Hebrew lexar and parser for this
Anonymous No.106397491 >>106397529
(a+)+$ then immediately name my newborn kid aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa!
Anonymous No.106397529
>>106397491
what did he mean by this
Anonymous No.106397543 >>106398228
https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS
Come to think of it, I should name the kid first then write the regex.
Anonymous No.106397557 >>106397576
Guess I'll write a fancy regex that matches the name of the one whose face I have in my mind, the fuck you mean?
Anonymous No.106397566
Dovahkiin *
I wonder how he ended up.
Anonymous No.106397576
>>106397557
Maybe there are certain surnames you want to remove completely. regex makes it quick and easy. Well, quick.
Anonymous No.106397603 >>106397610 >>106397619
>>106397395 (OP)
It makes no difference because you still need a face
Anonymous No.106397610
>>106397603
just imagine someone with a long nose
Anonymous No.106397619 >>106397661
>>106397603
The Death Note also doesn't require a face now. Glad I could help you out, champ.
Anonymous No.106397626
>>106397451
INDIA
Anonymous No.106397639
>>106397395 (OP)
\s+
FUCK PYTHON NIGGAS YOU CANT CODE NO MORE
Anonymous No.106397661
>>106397619
In that case I could just use it to kill every Muhammad, Singh, and Wang. However, Light might've found it MORE useful if it still needed a face, as Light could kill everyone whose name starts with an L (while specifying as many individuals as possible to exclude), and then think of L's face and wait for him to die. Rinse and repeat for each letter of the alphabet.
Anonymous No.106397755
.*
Anonymous No.106397808
(?i).*(gold|stein|b(u|e)rg)
Anonymous No.106397815
THE IRS!
THE DMV!
Anonymous No.106397837
(?i)\bDROP\s+TABLE\b

get fucked redditors uniquely named children
Anonymous No.106397867 >>106397870
The warehouse is silent, save for the hum of fluorescent lights.

Light sits confidently at the table, pen poised, Death Note open. Across from him, L crouches, as inscrutable as ever.

Light (thinking):
>This is it. He’s cornered. With regex, I don’t need his real name. All I need is a pattern... and I’ve already prepared one.

He begins to write:

/L(awliet)?/

A smug grin creeps across his face.

But L speaks, cutting through the silence:
>“Interesting. You think I’d reveal my identity so carelessly? You misunderstand regex, Light. Patterns are only as reliable as the data they’re matched against.”

Light freezes for half a second.

L:
>“You assumed my name fits into a pattern you could guess. But names are arbitrary strings. I made sure mine was encoded, scrambled, and legally changed multiple times. To the Death Note, I don’t exist as L Lawliet anymore. I exist as… something else.”

L slides a document across the table: a court record, showing his current legal name:

/_DeletedUser\d{6}_/

Light’s eyes widen. The name is practically regex-proof, a random machine-generated handle.

Light (thinking):
>No… it can’t be. Did he anticipate this from the start?
Anonymous No.106397870 >>106398195
>>106397867
L leans closer.
>“You rely too much on the power of your tool, Light. Regex is only powerful when you know the data. You’ve been playing god with incomplete information.”

Light’s smirk flickers, but he steadies his hand.
>“You’re bluffing. Even if your legal name is hidden, I can still wipe you out with a broader pattern. Something like…”

He scribbles:

/.*(detective|investigator|L).*/

Suddenly, alarms blare. Outside, agents collapse—some of them criminals, but others are Interpol officers, FBI liaisons, and even innocents with “L” in their names.

L watches calmly.
>“There it is. Your hubris. In trying to kill me, you revealed your method—and slaughtered allies unnecessarily. Everyone watching this knows it now. You’re no god. You’re a man wielding a dangerous search string.”

Light’s pen hand trembles. He realizes too late that regex—his ultimate weapon—is also the rope around his neck.

Light (thinking):
>No… I was supposed to create a perfect world… not this chaos…

L rises from his crouch, shadow stretching long across the table.
>“Checkmate, Kira.”
Anonymous No.106397900
tumblr is over there
Anonymous No.106398195
>>106397870
kino L victory
Anonymous No.106398228
>>106397543
>regex backreferences are NP-complete
>death note magically solves regex backreferences in constant time
>make babby named AAAAAAA!
>reduce 3-SAT to regex backreferences
>kill babby
>P=NP
>?????
>collect 1 million dollar millennium prize
problem knuth?
Anonymous No.106398262
>>106397395 (OP)
you'd have to imagine multiple faces at the same time, OP