I found the problem... I had an addslashes() being performed BEFORE this preg_replace so the condition was never met because center"> was really center\">
Thanks for all your help NogDog!
I just have one side question I am curious about...
Since I know now to use <div class, I was wondering, is it correct/compliant to write <div class="center"> in order to center something? or does that imply that I then have to create a class called center in my CSS stylesheet and then make that centered?
I ask because I noticed that without me creating the CSS definition the class="center", left and right, does the alignment as I expected it, but before I noticed that I thought I'd have to define those classes in my stylesheet...