sedlex icon indicating copy to clipboard operation
sedlex copied to clipboard

Named capture groups

Open whitequark opened this issue 11 years ago • 9 comments

A major thing that ulex is missing is named capture groups, i.e. (Plus '0'..'9') as digits syntax. Sedlex misses it, too; asking the user to manually calculate the indexes is absurd.

whitequark avatar Jun 24 '14 07:06 whitequark

:+1:

hhugo avatar Aug 21 '14 13:08 hhugo

:+1:

zoggy avatar Feb 19 '15 10:02 zoggy

:+1:

eyyub avatar Jul 20 '15 23:07 eyyub

I've just came across this problem. And I agree, having to reprocess the whole matched lexeme with OCaml-re to fetch the individual groups is a bit ridiculous...

darioteixeira avatar Mar 20 '16 11:03 darioteixeira

Same here. This is a major blocker to move to sedlex. Will not consider it until this has been implement.. :-(

toots avatar Mar 15 '17 17:03 toots

Essentially, if you want it, implement it. At this point sedlex is not really maintained.

whitequark avatar Mar 15 '17 21:03 whitequark

At this point sedlex is not really maintained.

That's a sad thing to hear. Is there any successor library?

nadako avatar May 12 '17 17:05 nadako

Not really.

whitequark avatar May 12 '17 20:05 whitequark

This is very sad to hear indeed! (And let me second, for whomever may show up, the need for named capture groups.)

pmetzger avatar Oct 08 '17 15:10 pmetzger