hi there !
this is a big issue i can't figure out. it's about regexps and HTML.
i would like to replace matches of a word (e.g. "hello") with another one (e.g. "bonjour") using ereg(i?)_replace or preg_replace.
but i would like to use this feature in HTML files. that's why it would be nice not to replace every match. for instance, <a href=hello.html> would not be replaced. otherwise, 404 errors will popup quite frequently.
what would be nice is that the regexp replaces all the matches except the ones within < and >
could use some suggestions.