Stuart Clark wrote: > > Hi all, > I am trying to match a 14 digit number > When i use this regular expression i match a 14 digit number and any number > over 14 digits. > > $somestring = ~ '/d{14}'; > > I have tried these combinations with no avail. > > $somestring =~ '/d{14,14}'; > $somestring =~ '[0-9]{14,14}'; > $somestring =~ '[0-9]{14,14}?; > $somestring =~ '/d{14}?'; > $somestring =~ '/d?{14,14}'; > $somestring =~ '/d?(14,14)'; > $somestring =~ '/d?[14,14]'; > $somestring =~ '/d{14,14}+';
Try $somestring =~ /\d{14}/; Bompa -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]