display string in PHP with preg_match
263
I got the following string:
low|Low Resolution jpeg high|High Resolution jpeg eps|Eps
I would like to display in like :
<li>low</li><span>Low Resolution jpeg</span>
<li>high</li><span>High Resolution jpeg</span>
<li>eps</li><span>eps</span>
NB: The words cn be changed in the string, how can I use something like pregmacthe...
Answer
Solution:
Assuming you forgot a
in your string: