I have the following text:
*<BR> Bullet1 *<BR>Bullet 2 *<BR>Bullet 3 *<BR>Bullet 4
I want to replace every *<BR> with <li> but also place a </li> at the end of the text (When it reaches a new *<BR> or can't find any)
The trick thing is that I also need a <ul> around all the li's to make it valid html.
I thought about using regular expressions but to honest I can't quite grasp the concept of it.
 
     
     
     
     
     
    
, if it is then I replace it with