Named captures

Post Reply
Sanaki
Posts: 110
Joined: Wed Mar 09, 2011 1:30 am

Named captures

Post by Sanaki »

Just wondering if it's possible now or in future implementation to make use of named regex captures rather than simply ordered, either via the matches table or other means. I've tried (?P<name>\w+), (?<name>\w+), and (?'name'\w+), with various methods of attempting to make use of it, but if there is a way currently I'm afraid I'm simply not seeing it.

EDIT: Realizing after I've posted this that this may not be the right board for it. Whoops. Still, feature request if it's not possible now.

User avatar
Heiko
Site Admin
Posts: 1548
Joined: Wed Mar 11, 2009 6:26 pm

Re: Named captures

Post by Heiko »

I coded support for named patterns in the very beginning, but dropped it later on because it lead to a lot of unnecessary complications in conjunction with other features of Mudlet. This feature doesn't offer anything that cannot be done some other way.

Post Reply