Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Regex(?) for updating discussion titles?

unipusunipus New
edited August 2006 in Vanilla 1.0 Help
I've got a lot of Discussion titles that are in HTML. So for instance, I want

"Ethical" Companies

to become

"Ethical" Companies


There's some tens of thousands of these to go through, lots of nbsps and so forth. I've absolutely completely forgotten how to do regex, or even if that's the best way to accomplish this. Any advice?

Comments

  • Why not just use str_replace in PHP? I always found regex to be horrible confusing, especially since I don't use it very often. I only use it for some pretty complex stuff. Or if you insist, you can look through these comments: http://us3.php.net/manual/en/ref.regex.php Google Groups is also a nice resource for reference as I'm sure someone has had this question before.
  • This is the perfect case to use the PHP function html_entity_decode() !
  • Thanks, Max, you're quite right!
This discussion has been closed.