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

 
 

sr #104818: named capture groups & a few others

Submitted by:  Eli BeechHaven <eli_beechhaven>
Submitted on:  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

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 31 Jul 2011 09:42:37 PM UTC, comment #1:

best student credit cards
credit cards for college students
student credit cards with no credit
what is a student credit card
free student credit cards

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

 

Do you think this task is very important?
If so, you can add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

 

 

No changes have been made to this item

Back to the top


Powered by Savane 3.3