i got the following from a book:
its a regex that works IF the word(s) dont have any special chars, like:
página, or
maçã
here it is:
$texto = ereg_replace('\[L]([-_./a-zA-Z0-9!&%#?+,\'=:~]+)\[EL]','<a class="texto" href="\\1">\\1</a>', $texto);
$texto =...