The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
find and remove text from string
I have a textarea where the admin can enter a string.
If the admin types "[7]" into the text area I'd like to use a code to remove the brackets so the result would be "7". I could do a simple str_replace if I knew the value was going to be "[7]" but there's no guarantee it will be. |
#2
|
||||
|
||||
Try preg_replace() instead.
PHP Code:
|
#3
|
|||
|
|||
I have to leave soon so I'll try it later today.
|
#4
|
|||
|
|||
Thanks, it works.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|