$a=' $text=~s#Find \#Text#Replace Text#; $text=~s/Find \/Text/Replace Text/; $text=~s{Find \}Text}{Replace Text}; '; #### if ($a=~m#$text=~s(.)\s*(?## Variable length lookbehind not implemented in regex; marked by <-- HERE in m/=~\s*s(.)(?