![]() |
Youtube RegExp Compatible with preg_match_all
Hello people of vbulletin, I've decided it's time to learn some php and write a vbulletin plugin.
So far so good: https://images-1.discordapp.net/eyJ1...4R9i81gcAI.png But I'm having trouble with getting a rexexp to work with preg_match_all() I'm getting the dreaded Quote:
Code:
if (stripos($string, 'youtu') !== false) |
Just as the error states: You don't have any valid delimiters for your expression in $regex. Try:
PHP Code:
|
As well as /, vbulletin uses # as the delimiter as well.
|
Ah yes, thank you gentleman for your assistance
|
All times are GMT. The time now is 01:02 AM. |
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:
|