display string in PHP with preg_match
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...
Assuming you forgot a
in your string: