Actually its a chapter from the OReilly regexp book

http://www.oreilly.com/catalog/regex2/chapter/ch08.pdf

-Mark

Mark R. Diggory wrote:
I like this idea as well. I saw a good link to a site comparing capabilities of of various java regexp implementations somewhere yesterday, I can't find it now from home. I'll send it out when I get to work. I think its wise to make sure, that if theres a common api, that the user understands that all regexp implementations are not equal in performance, capability and syntax.

-Mark

Gary Gregory wrote:

This sounds like a very nice grand plan. I support this in spirit at
least.

Gary


-----Original Message-----
From: Henri Yandell [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 04, 2004 14:16
To: Jakarta Commons Developers List
Subject: RE: [collections] Yipes, I need Regexp based get on a Map


I suspect the answer is the same as last time. The regexp solution is:


Merge ORO/Regexp into each other as Commons-Regexp, with both being a
plugin concept
Allow a 1.4 plugin concept for it

Daniel's grand plan. Maybe we should more actively try to assist him.

Hen

On Thu, 4 Mar 2004, Gary Gregory wrote:


This sure is interesting and brings up 2 points. (1) This can be


done

with a "decorator" and (2) this brings up the topic again of whether


or

not it would be a good thing to have a [commons-re] like we have a
[commons-logging], a super thin wrapper that delegates to 1.4 or, in
this case, [ORO-RE] or [RegExp].

Gary


-----Original Message-----
From: Mark R. Diggory [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 04, 2004 09:06
To: Jakarta Commons Developers List
Subject: [collections] Yipes, I need Regexp based get on a Map

I'm trying to put together a lookup mechanism that is regular


expression

based. For example


Map map = ...;


Bar bar = new Bar();

map.put("^http://foo.bar*",bar);


Bar bar2 = (Bar)map.get("http://foo.bar/bam";);



get("...") would return the bar object. Of course, this could


match

multiple values, as such get("...") could return the first value
encountered or a Collection of all the matches encountered.

Collection bars = (Collection)map.get("http://foo.bar/bam";);
Iterator iter = bars.iterator();
Bar bar2 = (Bar)iter.next();

Any ideas on how I can throw this together using Commons


Collections

as

a basis? I can live with just >=j2sdk1.4 compatibility. Is this
something Commons Collections would like to have available?

-Mark
--
Mark Diggory
Software Developer
Harvard MIT Data Center
http://www.hmdc.harvard.edu



---------------------------------------------------------------------


To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:


[EMAIL PROTECTED]




---------------------------------------------------------------------

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-- Mark Diggory Software Developer Harvard MIT Data Center http://www.hmdc.harvard.edu

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to