I have search string like this
(java AND j2ee) OR ("java developer" AND web 1.0)
I want to replace the above string like below
(skill:(java) AND skill:(j2ee)) OR (skill:("java developer") AND skill:(web 1.0))
For each skill I have to enquote in skill:().
I tried using str_getcsv
and str_replace()
but getting issues while having spaces and splitting at str_getcsv
. Please Help me