On 07/13/2006 12:47 AM, Dr.Ruud wrote:
"Mumia W." schreef:$str =~ m/^((\d+-\d+|\d+);?)+$/g; However, this does not consider 250-100 to be invalid.Nor "10-30-20". What's the g-modifier for? The structure is 'a;b;c;d', the smallest is 'a', so treat the ';' as the start of a trailer.
Oh yes, I see that the /g was superfluous, but I don't understand about the 'trailer' part.
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>
