How can I escape incoming data so I can use it as a pattern in preg_replace() and consorts? For example, I need to match against this string:
/vorschau/
Obviously, I need to escape the "v" or I will get an error.
I can't find anything in the documentation. Is there some sort of addslashes() for this, or a workaround within the expression?