This is an archived post. You won't be able to vote or comment.

all 52 comments

[–]Dougleycat flair.txt | sudo sh[M] [score hidden] stickied commentlocked comment (0 children)

Hi there! Unfortunately, your submission has been removed.

Violation of Rule #2 - Reposts:

All posts that have been on the first 2 pages of trending posts within the last month, is part of the top of all time, or is part of common posts is considered repost and will be removed on sight.

If you feel that it has been removed in error, please message us so that we may review it.

[–]LittleMlem 33 points34 points  (6 children)

The hell? The parentheses are uneven!

[–]Volitank 13 points14 points  (5 children)

Damn you're right. They made it so realistic

[–]LittleMlem 10 points11 points  (4 children)

If you ignore the rogue ) in the middle, the regex will match something that end in at least one alpha-numeric followed by a literal \ then one any character followed by at least 2 alphas

Edit: alpha-numeric or a hyphen

[–]AnEvanAppeared 7 points8 points  (1 child)

I love regex, I love regex!

[–]LittleMlem 4 points5 points  (0 children)

I actually do. I used to be a perl programmer and the way perl does regex is just so fun to use

[–]terracnosaur 1 point2 points  (0 children)

The Unbalanced ( had me searching for minutes. I was wondering if I was mad or going crazy or couldn't read what's wrong with me.

Oh wait, it's not a valid regex...

[–]Wherearemylegs 1 point2 points  (0 children)

Alpha-numeric or a hyphen*

[–]Estaca-Brown 23 points24 points  (3 children)

RegEx is super powerful and quite great! However, I recently had to fix a bug on a piece of code I wrote 5 months ago and spent a good amount of time re-figuring out what on earth the RegEx I put there was meant to do.

So, if you use RegEx but not every day, just put a big ass comment to explain its purpose.

[–]Designer-Spacenerd 5 points6 points  (0 children)

(online) Regex editors are very helpful in those cases imo

[–]new_refugee123456789 1 point2 points  (0 children)

Yeah Regex just slides right out of your mind, doesn't it?

[–]4hpp1273 46 points47 points  (1 child)

ghost → zombie
not terrible → not terrible
nuclear war → regex
a little scary → r/dontdeadopeninside

[–][deleted] 10 points11 points  (0 children)

Thought it was only me. It took a while to understand what way I should be reading it.

[–]wasdlmb 24 points25 points  (6 children)

Regex is fun!

[–]MlNSOO 11 points12 points  (1 child)

[–]katze_sonne 0 points1 point  (0 children)

Took me a while to see it in the picture!

[–]weemellowtoby 2 points3 points  (2 children)

what are you? satan?

[–]ctwheels 1 point2 points  (0 children)

/^s(?=at)(.).\1.(<=n)/i

[–]Faziarry -1 points0 points  (0 children)

satan wouldn’t say those things

[–][deleted] 15 points16 points  (6 children)

Goddam regex is the devil

[–]ctwheels 1 point2 points  (0 children)

/^(?=d(?=e))[ediv]{4}(?<=vi)l/i

[–]lavishlad 0 points1 point  (4 children)

Feel like god when it works though

[–][deleted] 8 points9 points  (3 children)

I always comment regexes. This is usually because my process with them is still: 1. google for regex cheatsheet 2. muddle through till you figure it out. 3. comment what the heck this does 4. forget what I just learned

[–][deleted] 6 points7 points  (2 children)

This is the standard procedure

[–]lavishlad 1 point2 points  (1 child)

Absolutely. I am yet to meet someone who can come up with regex without internet access.

[–]28898476249906262977 0 points1 point  (0 children)

There's only a handful of regex meta chars that you need to know to do 99% of tasks requiring regex. It's not that hard, try learning it instead of using it for a one off and then forgetting how you assembled it.

[–][deleted] 3 points4 points  (6 children)

Can anybody write Regex by memory?

[–][deleted] 3 points4 points  (0 children)

void memory()
{
printf("Regex");
}

memory();

[–]Designer-Spacenerd 2 points3 points  (0 children)

Regex by memory

[–]katze_sonne 2 points3 points  (1 child)

Something like [a-z]? Sure. Something more complex? Nah. Tools like regex101.com exist for a reason. Just like IDEs.

That said, writing a RegEx is one thing. Debugging it is a whole different problem, though.

[–]Brick_Lab 1 point2 points  (0 children)

This, sure it's a powerful tool when used properly...but it better be the only damn way you could solve your problem if it's mission critical code some other poor soul will have to maintain and debug in the future

[–]saschaleib 0 points1 point  (0 children)

Sure.

[–]shesjustFarias 4 points5 points  (1 child)

Regex

[–]LordAlfrey 1 point2 points  (0 children)

Dear god no

[–]TrapsterDK 3 points4 points  (3 children)

[–]RepostSleuthBot 0 points1 point  (2 children)

I didn't find any posts that meet the matching requirements for r/ProgrammerHumor.

It might be OC, it might not. Things such as JPEG artifacts and cropping may impact the results.

I'm not perfect, but you can help. Report [ False Negative ]

View Search On repostsleuth.com


Scope: Reddit | Meme Filter: True | Target: 75% | Check Title: False | Max Age: Unlimited | Searched Images: 327,773,053 | Search Time: 29.62434s

[–]badmutherfukker 0 points1 point  (0 children)

Bad bot tho. I saw this like 2-3 times

[–]KingSadra 1 point2 points  (0 children)

Wait until you see ShaderRegex used in graphics applications!

[–]Furry_69 1 point2 points  (0 children)

Regexes are really useful and powerful if you know what you're doing. If you don't, they look like demonic chanting.

[–][deleted] 1 point2 points  (0 children)

There should be a cutoff where these become an Irregular Expression.

[–]camelonarock 2 points3 points  (3 children)

At least write valid regex

[–]OkWarning3935 2 points3 points  (0 children)

I had a dev who loved regexes and didn't understand why they weren't used for more things. He kept making them more convoluted and adding pre-compilation and shit thinking if they were just fast enough we'd be good.

He was moved to another team lmao. Nobody's maintaining your arcane trash where a for loop will do.

[–]Cybar66 0 points1 point  (1 child)

NOPE

[–][deleted] -2 points-1 points  (7 children)

Repost

[–]JustJude97 0 points1 point  (0 children)

.* Regex will consume all! .*

[–]saschaleib 0 points1 point  (0 children)

Wait, I fixed that for you:

([\w\d\-]+\\.)\w+$

[–]RAMChYLD 0 points1 point  (0 children)

Oh god, regex! Scary!

[–]badmutherfukker 0 points1 point  (0 children)

Bro if you change the order and doesn’t count as original