3 ms·
I like the idea, but words there seems to be pretty random. I can't figure out the pattern, not even talking about writing regex... :(
by daGrevis 13y ago
I like the idea, but words there seems to be pretty random. I can't figure out the pattern, not even talking about writing regex... :(
- maxerickson 13y agoI got a 3 character pattern for the first puzzle and a 4 character pattern for the second puzzle (and reading a comment here I see there is a 2 char pattern for the second puzzle). Only used 1 special char between them (anchoring something). So the first two sets have repeated 3 character sequences, and in one of them they follow an additional pattern. For the third sequence, 8 character solution, lots of specials.
- rplnt 13y agoRead a) name of the puzzle b) the little help below the score. It gives out the pattern you should (not) look for. edit: Not in Glob. What is Glob about?
- schoen 13y agoIt's about implementing * as a wildcard character: https://en.wikipedia.org/wiki/Globbing https://en.wikipedia.org/wiki/Globbing I haven't figured out how to solve this with the parts of ERE and PCRE that I know. (I definitely don't know the entirety of PCRE.) It's straightforward for me to write a substitution using regular expressions to create a pattern-matcher for a given glob (just anchor the ends and replace literal ? with . and literal * with .*) but here we have to do it inside a single regular expression. I don't think there's a BRE solution if the number of stars is unbounded because I don't think this is a regular language.