> brackets; it does not _capture_ 3 times. Only literally present/countable 
> brackets capture.

Geee... I guess you are right :) Furthermore the following works without 
complaining about ?:

perl -e "print 'ouch' unless ('123456-123256' =~ 
/^(\d{2})(\d{2})(\d{2})(?:-(\d{2})(\d{2})(\d{2}))?$/ );"

I guess I went a little overboard with TIMTOWTDI :)

Thanks

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to