![]() |
Regular Expressions to Replace Quoted Text
I'd like to remove quoted text from thread previews.
Basically I want to remove anything that is either [ quote=xxxx ]text here[ /quote ] or [ quote ]text here[ /quote ] (without spaces in the quote tags obviously). I'm not the greatest with regular expressions however and can't seem to figure out what to do here. My attempt was: PHP Code:
|
PHP Code:
|
Thanks but I tried that prior to my regex idea. This is a non-standard vB plugin that I've coded and it doesn't recognize that function.
|
Quote:
ETA: like this: PHP Code:
|
PHP Code:
Also: You only need groups () if you need something from them to be returned. |
All times are GMT. The time now is 07:14 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|