my $thes530 = qr/thes530-....\.otenet\.gr/; my $millenium = qr/millennium-....\.ccf\.auth\.gr/; my $regex = qr/$thes530|$millenium/; if ($host =~ /$regex/) { print "Yay!\n"; }
I'm sure there's a way to join qr's, but I've never tried it.
------
We are the carpenters and bricklayers of the Information Age.
Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.
In reply to Re: regeex question
by dragonchild
in thread regeex question
by Nik
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |