if ($x =~ /^(sun|mon|tues|wednes|thurs|fri|satur)day$/) { #the anchors 
    # for start and end and then we allow any of the days
    print "we have a valid day, ${1}day\n"; # and we recognize 7 
        # prefixes and the suffix 
}
