your getting into custom development now.
you can't feed a comma separated list of regular expressions to the preg_replace function like this, though.
with the complexity that you are trying to accomplish, you would be better creating a function rather than stringing each command together like you are doing. If you need further assistance, a premiere support appointment would be the way to go.