in reply to Regular Expression Help
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 = ""; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: Regular Expression Help
by nardo (Friar) on Aug 11, 2000 at 20:54 UTC |