[Petal] Attributes with dashes

William McKee william at knowmad.com
Tue Jan 4 20:20:48 GMT 2005


On Tue, Jan 04, 2005 at 09:04:37PM +0100, Olaf Buwen wrote:
> is rather close to the "perfect" solution, just escape the "." to
> 	/^\s*([A-Za-z_:][A-Za-z0-9_:\.-]*)\s+(.*?)\s*$/

I'm pretty sure that's not necessary inside of []. See Camel p.64 (2nd
ed).

  "Note that most other metacharacters lose their meta-ness inside
  square brackets."


William

-- 
Knowmad Services Inc.
http://www.knowmad.com


More information about the Petal mailing list