Are you a regex whiz?

This is where all of the games are discussed.

Moderators: alietr, trainman, econgator, dhkendall

Post Reply
User avatar
Robert K S
Jeopardy! Champion
Posts: 1775
Joined: Thu Jun 30, 2011 1:26 pm
Location: Cleveland, Ohio
Contact:

Are you a regex whiz?

Post by Robert K S » 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. PM me if you think you might be able to help.

User avatar
opusthepenguin
The Best Darn Penguin on the Whole JBoard
Posts: 7100
Joined: Thu Aug 11, 2011 2:33 pm
Location: Shawnee, KS
Contact:

Re: Are you a regex whiz?

Post by opusthepenguin » Thu Nov 21, 2019 10:51 am

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.

User avatar
econgator
Let's Go Mets!
Posts: 8498
Joined: Fri Jul 01, 2011 10:32 am

Re: Are you a regex whiz?

Post by econgator » Thu Nov 21, 2019 11:37 am

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.
I'm sure its too hard ....

User avatar
Robert K S
Jeopardy! Champion
Posts: 1775
Joined: Thu Jun 30, 2011 1:26 pm
Location: Cleveland, Ohio
Contact:

Re: Are you a regex whiz?

Post by Robert K S » Thu Nov 21, 2019 12:17 pm

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.

NoWhammies10
Relaxing In The Hot Tub
Posts: 259
Joined: Wed Jul 27, 2011 7:49 pm
Location: Toronto, Ont.

Re: Are you a regex whiz?

Post by NoWhammies10 » 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

User avatar
alietr
Site Admin
Posts: 6921
Joined: Thu Jun 30, 2011 1:20 pm
Location: Bethesda, MD

Re: Are you a regex whiz?

Post by alietr » Thu Nov 21, 2019 12:54 pm

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
I repeat:
Feature.gif
Feature.gif (160.13 KiB) Viewed 723 times

harrumph
Voyeur
Posts: 1701
Joined: Mon Sep 26, 2011 12:00 pm
Location: Princeton, NJ

Re: Are you a regex whiz?

Post by harrumph » Thu Nov 21, 2019 1:54 pm

Nobody beats the regex whiz.

User avatar
Robert K S
Jeopardy! Champion
Posts: 1775
Joined: Thu Jun 30, 2011 1:26 pm
Location: Cleveland, Ohio
Contact:

Re: Are you a regex whiz?

Post by Robert K S » Fri Nov 22, 2019 1:35 pm

harrumph wrote:
Thu Nov 21, 2019 1:54 pm
Nobody beats the regex whiz.
This bug did since it turned out to be as much a PHP problem as a regex problem.

Post Reply