in reply to Need a regex..

Please correct your question you are trying to say accept or except. If its except then you can do any of these ways: $str = 'your regular expression string'; $str !~ /Select/