Hello,
I have some trouble with regex and php here:
<span style="color: blue">word1</span> word by word by word <span style="color: red">word</span>
I'm trying to get word1 out. Is the regex the best way though? Need to process around 70 sencences like this.
UPDATE
$one = '<span style="color: blue">word1</span> word by word by word <span style="color: red">word</span>';
preg_match('/<span[^>]*>(.*?)<\/span>/',$one);
echo $one;
Don't works, it outputs the same. Am I doing something wrong?
Thanks