This parameter must be exactly 3 characters in length and all the characters MUST be digits. What am I doing wrong? Be gentle I've already gone bald scratching my head over this one!#!/usr/bin/perl -w # use strict ; # my $step = 'a123aaaa' ; # Produces True message # if ($step =~ /\d{3}/) { print "\n\tIt's true :: <$step>!\n" ; } else { print "\n\tIt's false :: <$step>!\n" ; }
In reply to Another RegExp question by Ronnie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |