Re: [Felix-language] regex subexpression extraction

2007-03-24 Thread skaller
On Sat, 2007-03-24 at 16:52 -0400, Chris King wrote: > On 3/24/07, Erick Tryzelaar <[EMAIL PROTECTED]> wrote: > > How > > difficult would it be to support something like this? > > > > regmatch "host:/foo/bar/baz" with > > | ((alphanumeric+ as ?host) ":" (_* as ?path)) as ?arg => Some (arg, > > host

Re: [Felix-language] regex subexpression extraction

2007-03-24 Thread skaller
On Sat, 2007-03-24 at 13:29 -0700, Erick Tryzelaar wrote: > Python, as you probably know, has the feature for matching > subexpressions in a regular expression, like this: > I don't see an easy way on how to do this. Tre can do it using Posix standard syntax. > reglex seems like it could work

Re: [Felix-language] regex subexpression extraction

2007-03-24 Thread Chris King
On 3/24/07, Erick Tryzelaar <[EMAIL PROTECTED]> wrote: > How > difficult would it be to support something like this? > > regmatch "host:/foo/bar/baz" with > | ((alphanumeric+ as ?host) ":" (_* as ?path)) as ?arg => Some (arg, > host, port) > | _ => None > endregmatch; I thought Felix did this alre