This is what i'm trying to do
$description contains text entered by the user
for example
$description = "this is line one
this is line two
point one
point two
* this is an intersteing point"
What i need is for ever instance of an asterisk on a new line to be converted to <li> tags
for example
$description = "this is line one
this is line two
<li>point one</li>
<li>point two</li>
<li>this is an intersteing point</li>"
I just cannot for the life of me work out the regular expression to achieve this. I know it's possible as i've done it before but lost the code.
Anyone have any ideas?
Thanks
Jamie