Perl: the Markov chain saw | |
PerlMonks |
Re: Conditional Regexby Sidhekin (Priest) |
on Nov 27, 2006 at 06:41 UTC ( [id://586190]=note: print w/replies, xml ) | Need Help?? |
If I read you right, you want to test that the string starts with either a "/" or "http://localhost.net" (with variations). On that assumption, an alternation (plus some variation) should do it (/x whitespace added for clarity):
print "Just another Perl ${\(trickster and hacker)},"
In Section
Seekers of Perl Wisdom
|
|