Are you a regex whiz?
Moderators: alietr, trainman, econgator, dhkendall
- Robert K S
- Jeopardy! Champion
- Posts: 5251
- Joined: Thu Jun 30, 2011 1:26 pm
- Location: Cleveland, Ohio
- Contact:
Are you a regex whiz?
The Archive could use some assistance from someone with experience with regular expressions to fix a minor 15-year-old bug identified today by ToC winner Ben Ingram. PM me if you think you might be able to help.
- opusthepenguin
- The Best Darn Penguin on the Whole JBoard
- Posts: 10319
- Joined: Thu Aug 11, 2011 2:33 pm
- Location: Shawnee, KS
- Contact:
Re: Are you a regex whiz?
1. Identify the problem
2. Realize that the problem could be addressed using regular expressions.
3. Now you have two problems.
I know. I'm no help. I'll be fascinated if we do have a whiz who can spit out the proper combination of brackets and asterisks and alphanumerics and such that almost magically matches everything that's being searched for and ONLY that. I've spent too much time being mystified by the results of my attempts at regex searches. Often, even when I find the one that works, I'm never quite sure I understand why it worked and a slight variation didn't.
2. Realize that the problem could be addressed using regular expressions.
3. Now you have two problems.
I know. I'm no help. I'll be fascinated if we do have a whiz who can spit out the proper combination of brackets and asterisks and alphanumerics and such that almost magically matches everything that's being searched for and ONLY that. I've spent too much time being mystified by the results of my attempts at regex searches. Often, even when I find the one that works, I'm never quite sure I understand why it worked and a slight variation didn't.
- econgator
- Let's Go Mets!
- Posts: 10673
- Joined: Fri Jul 01, 2011 10:32 am
Re: Are you a regex whiz?
I'm sure its too hard ....Robert K S wrote: ↑Thu Nov 21, 2019 9:50 am The Archive could use some assistance from someone with experience with regular expressions to fix a minor 15-year-old bug identified today by ToC winner Ben Ingram.
- Robert K S
- Jeopardy! Champion
- Posts: 5251
- Joined: Thu Jun 30, 2011 1:26 pm
- Location: Cleveland, Ohio
- Contact:
Re: Are you a regex whiz?
Too hard for me, anyway, not having touched regexes since about 2005 or 2006, but I have had a few helpful parties pipe up, so, yay.
-
- Relaxing In The Hot Tub
- Posts: 305
- Joined: Wed Jul 27, 2011 7:49 pm
- Location: Toronto, Ont.
Re: Are you a regex whiz?
99 different bugs in the code /
99 different bugs /
Take one down, fix it around /
137 different bugs in the code
99 different bugs /
Take one down, fix it around /
137 different bugs in the code
- alietr
- Site Admin
- Posts: 8981
- Joined: Thu Jun 30, 2011 1:20 pm
- Location: Bethesda, MD
Re: Are you a regex whiz?
I repeat:NoWhammies10 wrote: ↑Thu Nov 21, 2019 12:48 pm 99 different bugs in the code /
99 different bugs /
Take one down, fix it around /
137 different bugs in the code
-
- Voyeur
- Posts: 1846
- Joined: Mon Sep 26, 2011 12:00 pm
- Location: Princeton, NJ
Re: Are you a regex whiz?
Nobody beats the regex whiz.
- Robert K S
- Jeopardy! Champion
- Posts: 5251
- Joined: Thu Jun 30, 2011 1:26 pm
- Location: Cleveland, Ohio
- Contact:
Re: Are you a regex whiz?
This bug did since it turned out to be as much a PHP problem as a regex problem.