mainRegular Expressions for Java - Support: sr #104818, named capture groups & a few...

 
 

sr #104818: named capture groups & a few others

Submitter:  Eli BeechHaven <eli_beechhaven>
Submitted:  Tue 08 Nov 2005 07:25:39 PM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  1 - Wish Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Operating System:  GNU/Linux
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 31 Jul 2011 09:42:37 PM UTC, comment #1: 
Anonymous
Tue 08 Nov 2005 07:25:39 PM UTC, original submission:  

Hi. First of all, I should say that I greatly appreciate the gnu.regexp package. I have done a lot of searching and I finally found a regular expression package for Jave that did pipelined stream searches, which is the feature that really wanted.

There are some features of other packages and some features that aren't in any package I know of, that I would like to see included in gnu.regexp:

1) unlimited capture groups and named capture groups
2) support for finding partial matches
3) access after a match to all substrings captured by a capture group rather than just the last substring

For example, if we're searching for a list of numbers
enclosed in parentheses and separated by commas (e.g. "(123,456,789)", the pattern might be "\((\d+)(?,(\d+))*\)". However, with ordinary regex capturing, this would only capture the first and last members of the list "123" and "789" as $1 and $2 respectively. I am proposing that captures be stored in some kind of tree structure so that there would be a way to retrieve all list elements, include "456" in my example.

Thank you. Eli <ecooper@mathstat.umass.edu>

Eli BeechHaven <eli_beechhaven>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

No changes have been made to this item

Back to the top

Powered by Savane 3.13-f8d8.
Corresponding source code