(Sorry! Revision regarding the $ character. Explaining via example as well)
I need to run a test on two string variables:
$a, $b
If $a is contained in $b, I need to see if their "difference" ($b-$a) contains the $ character in it. If it does, then return the "difference", else in all other cases, the test should return FALSE
Also $a should only occur at the END of $b...
$b = "abcde" $a = "cde" should result in true (no $ detected)
$b = "zyw$abcde" $a = "cde" should result in false ($ detected)
$b = "cdeab" $a = "cde" should result in false (NOT at the end)
$b = "zxwq" $a = "cde" should result in false ($a doesnt exist in $b)
HTH!