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

Balance (194)

  ^<.*>$|^<<.*>>$|^<<<.*>>>$



Balance (286)

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

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


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


Balance (212)

[<>]{28}




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

Search: