From: Alexander Schofield Date: 2002-02-27T02:24:55+09:00 Subject: Re: Nested paired brackets in regexp Check RAA, I saw a Ruby version of Lex, or Rockit might be what you need. Yasuo Saito wrote: > > Hi. > > Ruby's regular expression is very powerful. > > But, I cannot express paired brackets(<...>), which > might be nested, in a single regular expression. > > How can I check nested paired brackets by a single/simple > (extended) regular expression, if possible? > > eg. > input | expected > ------------------+-------------- > "abef" | "" > "abe" | "" > "abfg>h>i" | "gh>i>" > "abf" | not matched > > Y.Saito -- Alexander Schofield