0:20 >perl -E "my $line = qq[asdf asdf asdf INC1234567 klasdv asf asd +f ]; if ($line =~ /INC\d{7}/ ) { say qq[yes]; } else { say qq[no]; }" yes
Your only mistake was in backslashing the curly brackets.
Update: Fixed typo: the second occurrence of $line was missing the sigil.
Athanasius <°(((>< contra mundum
In reply to Re: Quick Regex Question
by Athanasius
in thread Quick Regex Question
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |