Hacker News new | ask | show | jobs
by acln 4569 days ago
Balance (194)

  ^<.*>$|^<<.*>>$|^<<<.*>>>$
2 comments

Balance (286)

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

  ^(((?<P><)|(?<-P>>))*(?(P)(?!)))$
Balance (288) with one bad match: ^(<(<(<(..)>)>)>)$
Balance (212)

[<>]{28}