Live data from Hacker News

Regex Puzzle

bbc.co.uk

51–60 of 97 posts

Re: Regex Puzzle

#51
I believe column E is under-constrained; a solution with column E = "YYYY " or "OOOO " passes the tests, but is clearly not what's intended.

Re: Regex Puzzle

#53
post #6

Worth doing this by hand to exercise your knowledge of regular expressions. My solution (SPOILER): http://imgur.com/a/9iK9J

I'm assuming the solution isn't unique because I found some positions that are under-constrained.

Which positions? I didn't find any that were under-constrained.

Re: Regex Puzzle

#54
post #6

Worth doing this by hand to exercise your knowledge of regular expressions. My solution (SPOILER): http://imgur.com/a/9iK9J

Ah, but you have underscores where there should be spaces! ;)

Re: Regex Puzzle

#55
Nice! At Keplers in Mountain View you can buy version of Scrabble that uses regexes. The designer used to sell it in front of the shop -- he is obviously a programmer.

Re: Regex Puzzle

#56
post #55

Nice! At Keplers in Mountain View you can buy version of Scrabble that uses regexes. The designer used to sell it in front of the shop -- he is obviously a programmer.

Could I stop by this afternoon and expect it to be in stock or was this a temporary offering?

Re: Regex Puzzle

#57

I believe column E is under-constrained; a solution with column E = "YYYY " or "OOOO " passes the tests, but is clearly not what's intended.

Never mind, this was an error in the https://regexcrossword.com/playerpuzzles/595e5542d2433 version, which has a (.) where it should have a \1 in row 2 (thanks to @angry_albatross).

Re: Regex Puzzle

#58
post #6

Worth doing this by hand to exercise your knowledge of regular expressions. My solution (SPOILER): http://imgur.com/a/9iK9J

I'm assuming the solution isn't unique because I found some positions that are under-constrained.

I only found one column to have multiple solutions, and saved it for last, at which point only one option made sense.

Re: Regex Puzzle

#59

Earlier quoted context omitted.

I'm assuming the solution isn't unique because I found some positions that are under-constrained.

Which positions? I didn't find any that were under-constrained.

Assuming 0 indexing: row 0 column 4. Constrained by rows 0, 2, 3 where rows 0 and 2 have [^XZVCHFJLQM] and [^\sPQFB] and row 3 has [OYSRU]. All of: O, Y, S, R and U match. Am I missing something?

Re: Regex Puzzle

#60
post #58

Earlier quoted context omitted.

I'm assuming the solution isn't unique because I found some positions that are under-constrained.

I only found one column to have multiple solutions, and saved it for last, at which point only one option made sense.

[deleted]
Post reply on HN