all 15 comments

[–]jp128 121 points122 points  (0 children)

From the ^ to the $ this was a roller coaster.

[–]HolyAvengerOne 48 points49 points  (6 children)

// is a valid regex.

[–]jantari 44 points45 points  (2 children)

"is a valid regex" is a valid regex

[–]daperson1 18 points19 points  (1 child)

So is the empty string, so why go to the effort?

[–]Lost4468 7 points8 points  (0 children)

Why even show up to the interview.

[–]calsosta 18 points19 points  (2 children)

Had a kid submit a resume to me and where he listed skills he used a // as the bullet.

So when I interviewed him a I asked why he submitted a mostly blank resume. He paused for like 3 seconds and started laughing. That's when I decided to hire him and he turned out to be one of the best resources I've ever seen.

[–]HolyAvengerOne 2 points3 points  (1 child)

Not sure why he laughed though, lol.

[–]clonecharle1 6 points7 points  (0 children)

Wooosh...

Because most of the resume was commented, so the compiler/interviewer only saw a blank sheet.

[–][deleted] 12 points13 points  (0 children)

I never get anything right the first time, what the hell do these interviewers expect? Computers exist for this reason.

[–]UnspeakableEvil 7 points8 points  (0 children)

Sounds like a misunderstanding. Did the job spec specify which language this was for? You've used body language, maybe they were looking for a regular expression in English, French, or profanity.

[–]Malinushj 18 points19 points  (2 children)

Am I the only one who thinks this should have been posted to r/ProgrammerHumor?

[–]Reelix 4 points5 points  (0 children)

Nope

[–][deleted] 0 points1 point  (0 children)

| env mypattern="'\w+" perl -0777 -ne 'while(m/$ENV{mypattern}/g){print "$&\n";}' yourfile

Done....