I am stuck.
I am trying to see if an textarea contains an #.
This is what I am trying but it doesnt work.
Example:
#firstname# - should trigger "processTaggedMessage"
whereas
firstname - should trigger "processNormalMessage"
The code (PHP):
(preg_match("^#(.*?)#$", $msg))
? $this->processTaggedMessage($fk_uid, $fk_cid, $sender, $msg, $num, $q)
: $this->processNormalMessage($fk_uid, $fk_cid, $sender, $msg, $num, $q);
I am sure it is probs something simple but I cannot see it, I believe the regex is correct :S
Thanks,
Kyle