3 ms·
well, if you are strictly interested in matching with the fewest characters, regardless of the apparent pattern: ^(.)(.).*\2\1$
by moron4hire 13y ago
well, if you are strictly interested in matching with the fewest characters, regardless of the apparent pattern:
^(.)(.).*\2\1$
- danielweber 13y agoYour anchors at the end make it match nothing.
- moron4hire 13y agosorry, misreplied. This was for palindromes.