Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 19 May 2016, 00:49
GHRake GHRake is offline
 
Join Date: Sep 2015
Real name: Anomander Rake
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:


But I'm having trouble with getting a rexexp to work with preg_match_all()
I'm getting the dreaded
"PHP Warning: preg_match_all(): Delimiter must not be alphanumeric or backslash"
When I use:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Any words of wisdom? TIA
Reply With Quote
  #2  
Old 19 May 2016, 06:35
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Real name: Sven
Just as the error states: You don't have any valid delimiters for your expression in $regex. Try:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
Please note that there will be no further updates to my addons, especially they will not be upgraded for vB5. I'm leaving vB, since IB choose to go the banana-way yet again.

http://www.roma-antiqua.de
Reply With Quote
  #3  
Old 19 May 2016, 09:52
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
As well as /, vbulletin uses # as the delimiter as well.
__________________
Former vBulletin.org Staff Member


Cable Forum
Please do not PM me about custom work - I no longer undertake any.
Note: I will not answer support questions via e-mail or PM - please use the relevant thread or forum.
Reply With Quote
  #4  
Old 19 May 2016, 17:21
GHRake GHRake is offline
 
Join Date: Sep 2015
Real name: Anomander Rake
Ah yes, thank you gentleman for your assistance
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 12:41.

Layout Options | Width: Wide Color: