Live data from Hacker News

Regex Crossword

regexcrossword.com

71–80 of 115 posts

Re: Regex Crossword

#71
post #16

My main problem with this is telling the difference between O and 0, the clue O's look more like 0 so I have to copy paste them. (Although I don't think I've had any numbers required for solutions yet).

You can copy/paste the Os and 0s if you're not sure.

Re: Regex Crossword

#72
post #42
post #17

Earlier quoted context omitted.

* * / / / isn't a special character and * isn't special when inside a character class

Now here's a puzzle where the "post your solutions in ROT13 to avoid spoilers" conventional wisdom wouldn't help!

ROT47 solves this exact problem.

Re: Regex Crossword

#73

What does it mean when a reg ex ends with a `\1` (backslash 1) as in this example third beginner puzzle? (.)+\1 http://regexcrossword.com/challenges/beginner/puzzles/3

Look at the Help button (top right); that explains all their syntax.

Re: Regex Crossword

#74
post #58

http://regexcrossword.com/challenges/intermediate/puzzles/5 Anyone understand what (.)*DO\1 should match? edit: Okay, I was writting 0 instead of O that's why it wasn't working.

. -> any character (.) -> any character, grouped to reference it, since it's the first group it's referenced as \1 (.)* -> that, 0 or more times (.)* DO -> any character 0 or more times, followed by DO (.)* DO\1 -> any character 0 or more times, followed by DO, and the same character as in the beginning

By the way, the backreferences make the game non-regular.

Re: Regex Crossword

#75

Fun! When I saw the title, I was expecting the opposite: a normal cross word with the usual "42 Across (4): It gets things done" style hints, but the answers were valid regex's. Someone make that too!

Regular crossword entries (that only have letters in them) are already valid regexen.

Re: Regex Crossword

#76
post #61
post #58

http://regexcrossword.com/challenges/intermediate/puzzles/5 Anyone understand what (.)*DO\1 should match? edit: Okay, I was writting 0 instead of O that's why it wasn't working.

Anything 0 or more times backreferenced onto the end of the string "DO", is my guess. So, for example: DO DONUT DOG

Wouldn't the characters have to come first, in order to be referenced in the first place? I.e. "DOG" would read "GDOG," no?

Re: Regex Crossword

#77
post #73

What does it mean when a reg ex ends with a `\1` (backslash 1) as in this example third beginner puzzle? (.)+\1 http://regexcrossword.com/challenges/beginner/puzzles/3

Look at the Help button (top right); that explains all their syntax.

The help button doesn't really explain that point ( I don't think) at least not in a very clear way for someone inexperienced with regex

Re: Regex Crossword

#78

What does it mean when a reg ex ends with a `\1` (backslash 1) as in this example third beginner puzzle? (.)+\1 http://regexcrossword.com/challenges/beginner/puzzles/3

It's a backreference to the first capture group, which is denoted by the first set of parenthesis, e.x. (.*)+\1 would match "ABAB", or "ABCABC", etc. "\2" would match the second capture group, e.x. (.*)(.*)\2\1 would match "ABBA", or "AABBBBAA", etc.

so in your first example, "AB" was in the capture group and the \1 repeats it?

Re: Regex Crossword

#80
post #59
post #21

How about you save my progress in a cookie? You might find this hard to believe, but I don't have a Facebook account.

Off topic, but god I just wish Facebook would disappear. It's ironic that such a popular company with such a huge valuation would produce an immediate and significant benefit to me if it just disappeared overnight.

It begs the question, do you mean Facebook the social network, or Facebook the company? Because there are surely many benefits coming from the company that don't necessarily depend on the social network.
Post reply on HN