the {5,} quantifier has to come after the [A-Z]. i also cleaned up the substitution regex a little.if ($filename =~ m/^[A-Z]{5,}/) { $section_title = ($filename =~ s/:/:</B>\n<BR><BR>/); $filename = ""; }
In reply to RE: Regular Expression Help
by jlistf
in thread Regular Expression Help
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |