$site = "Bluff Park"; lc($site); # converts to lowercase $site =~ s/\s/_/g; # substitutes spaces with _ foreach (@entries) { if (/^~$site/) { # have a match! } }
Hope that helps./^~$site/i
In reply to Re: Need help with tricky regex creation
by csotzing
in thread Need help with tricky regex creation
by S_Shrum
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |