Hi,
I would like to have a regular expression which replaces substrings like "Hi, all fine here" to "Hi, all fine <u>here</u>". So all strings contained in xx should be replaced with <u>xx</u>. This is no problem but the expression should not replace items contained for example in html-tags !
My current expression (ereg_replace("([]+)_","<u>\1</u>",$text)) doesn't take care of that and so also replace strings like "<a href="aa.ad/image/454_45.jpg>dfhf</a>".
Could anyone help me ?
Thanks a lot,
Corin