if (index($after, $scur) > -1) { # $after contains the text in $scur }