#!/usr/bin/perl -w use strict; print "Enter filename, CTRL+C to break: "; while (<>) { chomp; if (/^[a-z][a-z0-9]{2,7}$/i) { print "Filename OK\n"; } else { print "Filename sucks, input a better one!\n"; } }
In reply to Re: Regular Expression help
by Anonymous Monk
in thread SOLVED Regular Expression help
by Slug
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |