if ( "abbreviation" =~ m/^\Q$str/ ) { #... [download]
In reply to Re^3: Abbreviation regex? by ikegami in thread Abbreviation regex? by bsb