Hover Text:

Wait, forgot to escape a space. Wheeeeee[taptaptap]eeeeee!

Transcript

[in a yellow box:]
Whenever I learn a new skill I concoct elaborate fantasy scenarios where it lets me save the day.

Megan: Oh no! The killer must have followed her on vacation!
[Megan points to computer.]
Megan: But to find them we’d have to search through 200 MB of emails looking for something formatted like an address!
Cueball: It’s hopeless!

Off-panel voice: Everybody stand back.

Off-panel voice: I know regular expressions.

[A man swings in on a rope, toward the computer.]

tap tap
The word PERL! appears in a bubble.

[The man swings away, and the other characters cheer.]

You are viewing a single thread.
View all comments View context
0 points

Oh no

permalink
report
parent
reply
0 points

Who’s gonna tell them? I’d do it but I’m still busy parsing HTML with regex… it’s working any minute now!

permalink
report
parent
reply
0 points

What am I missing? I typically used it as a sanity check and would vet the changes. Never as a one-click modify. Or is there something else I should know about?

permalink
report
parent
reply
0 points
*

This short article has some good examples at the top: https://sigparser.com/developers/email-parsing/regex-validate-email-address/

Basically, you can very easily make a regex to match 99% of email addresses, but technically an email could be something like “!@[124.35.6.72]”

permalink
report
parent
reply

Comics

!comics@programming.dev

Create post

A community for sharing comics related to programming

Icon base by Delapouite under CC BY 3.0 with modifications to add a gradient

Community stats

  • 1

    Monthly active users

  • 61

    Posts

  • 33

    Comments

Community moderators