[regex-coach] feature request: Named Groups
Randy Gerritse
randy at randy.nu
Tue Aug 30 17:27:30 UTC 2005
Hi
First of all I've gotta say, having tested all the available regex
tools, your regex coach is farout the best. However, one thing has been
bugging me A LOT. You don't seem to support named groups! Since this
makes the output in the language I use, PHP, a lot more userfriendly
(and less subject to change if you alter the expression) I use this
language feature a lot:
class="cell2">.*?(?P<downloads>(\d{1,3},{0,1}){0,5})\s*&
.*?class="cell5">(?P<requirements>.*?)<\/td>
.*?<td>Publisher:<\/td>
\s*<td>(?P<publisher>.*?)<\/td>
.*?<td>Limitations:<\/td>
\s*<td>(?P<limitations>.*?)<\/td>
.*?<td>Date.added:<\/td>
\s*<td>(?P<published>.*?)<\/td>
.*?<div.id="desc-body">\s*?(?P<longdesc>.*?)\s*?<\/div>
like in the above example (which by the way your tool processes
correctly except for the named groups, where most other tested tools
failed!)
in the documentation I found it says that this format:
(?P<longdesc>group)
...has been adapted from python and made part of the standard... is
there a reason you have not put it in the tool? and is it possible to
start supporting it? that would be a BIG help!!! right now I need to
strip out all names before testing and that sux0rs... it would make your
tool the best out there, by a mile..!
More information about the regex-coach
mailing list