See Also:
Level | Score | Regex | Credit |
---|---|---|---|
Warmup | 207 | foo |
|
Anchors | 208 | k$ |
|
Ranges | 202 | ^[a-f]*$ |
|
Backrefs | 201 | (...).*\1 |
gorhill (HN) |
Abba | 195 | ^(?!.*(.)\1)|ef |
BeniaminK (GH) |
A man, a plan | 177 | ^(.)[^p].*\1$ |
hyp0 (HN) |
Prime | 286 | ^(?!(..+)\1+$) |
josephlord (HN) |
Four | 199 | (.)(.\1){3} |
chrismorgan (HN) / MereInterest (HN) |
Order | 199 | ^.{5}[^e]?$ |
ekke (HN) |
Triples | 596 | 00($|3|6|9|12|15)|4.2|.1.+4|55|.17 |
alexandrosm (GH) |
Glob | 397 | ai|c$|^p|[bcnrw][bnopr] |
nwellnhof (HN) |
Balance | 454 | .{37}|^(<(..(?!<.>$))*>)*$ |
Davidebyzero (GH) |
Powers | 93 | ^(?!(.(..)+)\1*$) |
plby (GH) |
Long count | 256 | ((.+)0\2+1){8} |
Davidebyzero (GH) |
Alphabetical | 317 | .r.{32}r|a.{10}te|n.n.. |
alexandrosm (GH) |
Powers 2 | 88 | ^(?!((xxx)+x|xx|)\1*$) |
muxrwc (GH) |
Total | 4075 | ||
Subtraction | 180 | ^(.+)(.+) - \1 = \2$ |
jonathanmorley (GH) |
Typist | 181 | ^[adresbtcfxzgvw]+$ |
jonathanmorley (GH) |
Level | Score | Regex | Credit |
---|---|---|---|
Warmup | 207 | foo |
|
Anchors | 206 | ick$ |
Davidebyzero (GH) |
Ranges | 202 | ^[a-f]*$ |
|
Backrefs | 201 | (...).*\1 |
gorhill (HN) |
Abba | 193 | ^(?!.*(.)(.)\2\1) |
chingjun (HN) / josephlord (HN) |
A man, a plan | 150 | ^(.?)(.?)(.?)(.?)(.?)(.?).?\6\5\4\3\2\1$ |
jonathanmorley (GH) |
Prime | 284 | ^(?!(xx+)\1+$)xx |
Davidebyzero (GH) |
Four | 199 | (.)(.\1){3} |
chrismorgan (HN) / MereInterest (HN) |
Order | 156 | ^a*b*c*d*e*f*g*h*i*j*k*l*m*n*o*p*q*r*s*t*u*v*w*x*y*z*$ |
Davidebyzero (GH) |
Triples | 524 | (?=((.*?[147]){3})*((.*?[147]|){2}))(?=((.*?[258]){3})*((.*?[258]|){2}))^.*$(\3\7|(?!\3|\7)\4\8|(?!\4|\8)) |
teukon (GH) |
Glob | 297 | ai|c$|^p|[bcnrw][bnopr] |
nwellnhof (HN) |
Balance | 443 | ^(<(<(<(<(<(<(<>)*>)*>)*>)*>)*>)*>)*$ |
gkucmierz (GH) |
Powers | 93 | ^(?!(.(..)+)\1*$) |
plby (GH) |
Long count | 239 | ^((?=(\S*)0).{4} (?=\2[1]))+1+$ |
Davidebyzero (GH) |
Alphabetical | 282 | ^(?!.*\b(.*)(e|(n|r|(s|t))).* \1(a|(?!\3)[en]|(?!\4)[rs])) |
teukon (GH) |
Powers 2 | -12 | ^(?!((xxx)+x|xx|)\1*$) |
muxrwc (GH) |
Total | 3664 | ||
Subtraction | 180 | ^(.+)(.+) - \1 = \2$ |
jonathanmorley (GH) |
Typist | 180 | ^[adresbtcfxzgvwq]+$ |
jonathanmorley (GH) |
I can't figure out how you're supposed to cancel formatting inline; any pointers?
Glob (336 - hard)
Powers 2 (86 - hard)
It seems like
should work, but it doesn't match anything and I can't figure out why.
Note: the following are obsoleted by https://gist.github.com/Davidebyzero/9090628, so I won't bother reporting any more solutions, but I'll leave these here anyways since they represent solutions I developed myself or tweaks/optimizations I made to others' solutions.
Subtraction (182 - both)
Addition (167 - both)
or
or
or
Or if you're boring, you can just do this 👅
Anyway (168 - normal; 68 - hard)
This works for normal mode, but fails the extended cases for hard. I feel like I'm missing something obvious here.
Tic-tac-toe (142 - normal; 42 - hard)
This doesn't match "OXX OX. XO.", but that doesn't look like a won/winnable tic-tac-toe game.
Edit: My current totals, after reading through a lot of comments, are: default levels: 4075 (normal), 3801 (hard); bonus levels: 1736 (normal), 1731 (hard). As far as I can tell, these are the best possible scores given currently known regexes.