How to add bullet or number list to this....
Any help would be great.
Problem or what I am not understanding I guess is the replacement part.
I know I can add
but what if it is a number or a bullet and how many of each, so the replacement part not getting at all.
So please free to add to this for me. And examples.
$simple_search = array(
'/\[hr\]/is',
'/\[s\](.*?)\[\/s\]/is',
'/\[align\](.*?)\[\/align\]/is',
'/\[b\](.*?)\[\/b\]/is',
'/\[i\](.*?)\[\/i\]/is',
'/\[u\](.*?)\[\/u\]/is',
'/\[url\=(.*?)\](.*?)\[\/url\]/is',
'/\[url\](.*?)\[\/url\]/is',
'/\[align\=(left|center|right)\](.*?)\[\/align\]/is',
'/\[imgwl\](.*?)\[\/imgwl\]/is',//image left wrap text
'/\[imgwr\](.*?)\[\/imgwr\]/is',//image right wrap text
'/\[img\](.*?)\[\/img\]/is',
'/\[mail\=(.*?)\](.*?)\[\/mail\]/is',
'/\[mail\](.*?)\[\/mail\]/is',
'/\[font\=(.*?)\](.*?)\[\/font\]/is',
'/\[size\=(.*?)\](.*?)\[\/size\]/is',
'/\[color\=(.*?)\](.*?)\[\/color\]/is',
'/\[bgcolor\=(.*?)\](.*?)\[\/bgcolor\]/is',
'/\[p\](.*?)\[\/p\]/is',
);
$simple_replace = array(
'<hr>',
'<strike>$1</strike>',
'<div style="text-align: $1;">$2</div>',
'<strong>$1</strong>',
'<em>$1</em>',
'<u>$1</u>',
'<a href="$1">$2</a>',
'<a href="$1">$1</a>',
'<div style="text-align: $1;">$2</div>',
'<img src="$1" ALIGN="left">', //image left wrap text
'<img src="$1" ALIGN="right">', //image right wrap text
'<img src="$1"/>',
'<a href="mailto:$1">$2</a>',
'<a href="mailto:$1">$1</a>',
'<span style="font-family: $1;">$2</span>',
'<span style="font-size: $1;">$2</span>',
'<span style="color: $1;">$2</span>',
'<span style="background: $1;">$2</span>',
'<p>$1</p>',
);