what's the pattern on "Abba"? I thought it was just to exclude doubled letters but I have doubles on two words on the left hand side as well (noisefully and effusive, in case the word lists are the same)
^(.)(.).*\2\1$61–70 of 189 posts
what's the pattern on "Abba"? I thought it was just to exclude doubled letters but I have doubles on two words on the left hand side as well (noisefully and effusive, in case the word lists are the same)
^(.)(.).*\2\1$Earlier quoted context omitted.
It gives you hints below the score, for 6 it's: You're allowed to cheat a little, since this one is technically impossible. No idea how you cheat... EDIT, SPOILERS: I get 170 with ^(.?)(.)(.).?\3\2\1$
176 with ^(.)(.).*\2\1$
^(.)[^p].*\1$ # 177, "cheat a little"I got Four for 196 with (.).*\1.\1.*\1 and Order for 156 with ^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*$
^[a-g]*[^a-g]*$I have the most trouble with regex, and something about seeing my matches as I type made this incredibly useful for me!
what's the pattern on "Abba"? I thought it was just to exclude doubled letters but I have doubles on two words on the left hand side as well (noisefully and effusive, in case the word lists are the same)
well, if you are strictly interested in matching with the fewest characters, regardless of the apparent pattern: ^(.)(.).*\2\1$
I have the most trouble with regex, and something about seeing my matches as I type made this incredibly useful for me!
what's the pattern on "Abba"? I thought it was just to exclude doubled letters but I have doubles on two words on the left hand side as well (noisefully and effusive, in case the word lists are the same)
Excluding doubled consonants that have the same vowel on both sides of the pair: ^((?!([aeiou])([^aeiou])\3\2).)*$ The following also works for the testcases and is shorter: ^((?!(.)(.)\3\2).)*$
ef|^((?!(.)\2).)*$
But I reckon yours wins for having a pair of breasts in the middle