Hacker News new | past | comments | ask | show | jobs | submit login

Balance (286)

  ^(<(<(<(<(<(<<>>)*>)*>)*>)*>)*>)*$
If we had named captures:

  ^(((?<P><)|(?<-P>>))*(?(P)(?!)))$



Balance (288) with one bad match: ^(<(<(<(..)>)>)>)$




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: