this post was submitted on 12 Nov 2023
271 points (95.3% liked)
Programmer Humor
32706 readers
349 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I recommend using https://regex101.com/
It explains all parts of your regex and highlights all matches in your example text. I usually add a comment to a regex101 playground if I use a regex in code.
I taught myself Regex using Regex101, so something doesn't add up here.
Does every Regex contain a reverse negative lookup? Do I need to know how to do a reverse negative lookup to write a Regex?
If not, why are you asking?
I have written dozens upon dozens of Regexes without using reverse negative lookups, but I guess according to you I don't really know Regexes because I haven't used those specific features?
You don't need to know all about a subject to know a subject.
I'm not sure why you're bringing up efficiency, I'm not talking about that. If I don't understand a topic, I can't do things with the topic. I use Regexes, so I must at least somewhat understand Regexes.
Well, earlier you were saying that I don't know Regexes if I don't know reverse negative lookups. Funnily enough Regex101 would help me understand your code in this case, so you were wrong on that count too.
Dev ops wagie thinks he's a programmer, lmfao.
God, you're so full of yourself it's hard to even read
Lol. I doubt the inventors of regex know all of regex
I disagree. I found it to be incredibly useful when I knew what regex was and that I needed it, but I couldn't piece together a single string with it.