im working on a search engine. i need to find some way of putting a (+) sign in front of a word in a variable if no other symbol such as a quote (") or a minus sign (-) is in front of that word. Also, there cannot be a (+) sign in front of a word in the variable if the word ENDS in a quote (")
is tihs possible, and how do i do it if so?
to add the plus im using:
$new = preg_replace('/(w+)/',"+$1",$querySearch);
but its not really doing what i want as stated above.