Y
Hacker News
new
|
ask
|
show
|
jobs
by
nadinengland
4571 days ago
Balance (286)
^(<(<(<(<(<(<<>>)*>)*>)*>)*>)*>)*$
If we had named captures:
^(((?<P><)|(?<-P>>))*(?(P)(?!)))$
1 comments
skeltoac
4569 days ago
Balance (288) with one bad match: ^(<(<(<(..)
>)
>)
>)
$
link