Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
moron4hire
on Dec 20, 2013
|
parent
|
context
|
favorite
| on:
Regex Golf
well, if you are
strictly
interested in matching with the fewest characters, regardless of the apparent pattern:
^(.)(.).*\2\1$
danielweber
on Dec 20, 2013
[–]
Your anchors at the end make it match nothing.
moron4hire
on Dec 20, 2013
|
parent
[–]
sorry, misreplied. This was for palindromes.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: