DTLL: Regex variable binding syntax

Hi,

  Regarding <http://www.jenitennison.com/datatypes/DTLL.html>, for the
regular expression variable binding, I'm personally used to write Perl
code like

  my($year, $month, $day) = /^([0-9]{4})-([0-9]{2})-([0-9]{2})$/

so it would seem syntax like

  <regex for="year month day">([0-9]{4})-([0-9]{2})-([0-9]{2})</regex>

would make more sense and should be easier to integrate into existing
regular expression engines. I personally find the (?[name]regex) syntax
very difficult to get used to...

regards,
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 

Received on Saturday, 7 January 2006 01:48:27 UTC