|
I find it a lot easier to write a regex that it is to read it. So - to me - copying from the internet and tweaking it sounds hard compared to writing one.
|
|
|
|
|
relatable
Real programmers use butterflies
|
|
|
|
|
Agreed, except when I need it, I pull up the reference and grind through what I need.
I wonder if it would be possible to create an alternate language version of regex, one that is more easy for us regular people to work with, but could then be compiled down to a regex expression. Sort of like TypeScript is for JavaScript. Hmmm, sounds like an interesting project....
|
|
|
|
|
I create Regexes using Visual Studio Code, where we can experiment with the regex and get to see the result on the screen. Learnt about the Regex feature of Visual Studio Code in a Youtube video.
|
|
|
|
|
Unfortunately those tools don't really help me here because of what I'm doing - programmatically simplifying the expression. The whole bug was a brain fart on my part. I knew better. I just wasn't seeing it.
Basically my program was more clever than I was in the moment, and did a simplification I didn't understand at the time.
Real programmers use butterflies
|
|
|
|
|
honey the codewitch wrote: The "bug" was this - I was inputting a regular expression Sounds like a bug alright
Jamie Zawinski wrote: Some people, when confronted with a problem, think
“I know, I'll use regular expressions.” Now they have two problems.
|
|
|
|
|
|
Yeah, but that wasn't my issue.
My issue was I wasn't being as clever as my program was. It found a simplification for my regular expression that I didn't understand at the time even though I should have. It was a prolonged brain fart on my part. It wasn't a knowledge or tools issue. It was just me being a goof. Thanks though!
Real programmers use butterflies
|
|
|
|
|
I think a little Microsoft has rubbed off on you!
"It's not a bug, it's a feature."
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
and not just a feature, but a feature we planned to release 12 years from now.
|
|
|
|
|
|
I've used it before, but it wouldn't have helped me here. My problem was a prolonged brain fart.
I *know* [a-z_A-Z][a-z_A-Z0-9]* will match foo, bar and baz. I was just spacing it off, because I was expecting to see a loop around (foo|ba[rz]) and it was (rightly) eliminating it.
Real programmers use butterflies
|
|
|
|
|
Term: Feature
Definition: A bug with seniority.
|
|
|
|
|
Or Feature: a bug in a sports jacket.
|
|
|
|
|
Undocumented feature.
The less you need, the more you have.
Even a blind squirrel gets a nut...occasionally.
JaxCoder.com
|
|
|
|
|
sometime it is safe to say, the bug exists in human's mind...
diligent hands rule....
|
|
|
|
|
So the real question is…
What happens when you use the second expression as the input to your engine?
Does it return the same value?
|
|
|
|
|
Yes, it does.
Real programmers use butterflies
|
|
|
|
|
Then it must be the correct answer! Stop doubting yourself. 😊
|
|
|
|
|
|
Did you actually listen to the whole thing? I couldn't and I have completion issues. Bailed out at 5 minutes.
I’ve given up trying to be calm. However, I am open to feeling slightly less agitated.
|
|
|
|
|
You lasted longer than me. I think under 2 min for me, lol.
|
|
|
|
|
This guy has been around a long time and also I've tried to figure out these various people who "tell the secrets" and how they actually make money.
I'm pretty sure all they do is keep you on the hook...
The longer you watch the video the more advertising revenue they generate / get.
I'm pretty sure that nothing he says actually means anything, if you listen.
He just keeps going though because the longer the video plays the better for him.
There are a lot of people who leave the TV on all day so they don't feel lonely.
The modern thing is to leave Youtube cycling through videos all day in the background so you dont' feel lonely.
These people generate income off of that. Smart and dumb at the same time.
|
|
|
|
|
I lasted about 1-1/2 minutes. What a steamy pile of BS...
The less you need, the more you have.
Even a blind squirrel gets a nut...occasionally.
JaxCoder.com
|
|
|
|
|
Yes I sat through the whole thing. :/
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|