if (substr($large, 0, length($small)) eq $small) { ... } [download]
In reply to Re: Regex Start Anchor with variables by japhy in thread Regex Start Anchor with variables by chrism01