Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
nadinengland
on Dec 20, 2013
|
parent
|
context
|
favorite
| on:
Regex Golf
Balance (286)
^(<(<(<(<(<(<<>>)*>)*>)*>)*>)*>)*$
If we had named captures:
^(((?<P><)|(?<-P>>))*(?(P)(?!)))$
skeltoac
on Dec 21, 2013
[–]
Balance (288) with one bad match: ^(<(<(<(..)
>)
>)
>)
$
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: