Hi all,
I am looking to create words from a sentence which adhere to a custom search pattern from my website:
Example:
![hello] +![bye] /[said] +=[from] ~[to]
where the terms ! = not, +! = AND NOT, += - and equals and ~ = can be like....
Now here is the issue...i want to split a sentence like the one above on spaces, this is easily done in PHP with a simple split on " ". However this will not work if i have something like:
![hello] +![bye] /[said] +=[from] ~[to] my name
as my name is not surrounded with any of the custom tags and has a space in it...
so basically my output should be:
![hello]
+![bye]
/[said]
+=[from]
~[to]
my name
Any help people? :(