preg replace to remove bbcode quote

Could someone give me an example of how to I can remove


Author being the authors name, and 3095231 being the post.

I want to use preg replace, or anything similar but not sure how and was wondering for an example, I believe it would be something like [QUOTE=(.+?)] and i don't know the rest.


Your regex looks almost right to me, you must escape the brackets though.

Assuming it's in PHP, the corresponding code would look like

$text = preg_replace('/\[QUOTE=(.+?)\]/', '', $text);

The regular expression you're looking for is


Need Your Help

fosuserbundle not loggin int PRO mode

symfony fosuserbundle

I have a problem for logging users in production

How to Route Mixed MvcApplication and WebApiApplication in a namespace?

c# api

I have an MVC application with two controllers, One worked as WebAPiApplication and the second one worked as a regular MvCApplication. I have configured the route somehow which only the API is acce...