The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#6
|
|||
|
|||
![]()
I'm just learning Regex's myself, but I think you should try and simplify things and make sure its finding the pattern before you try doing anything else to it (like the split).
The error you have in your regex is the parens. they should be curly brakets i.e. [0-9]{3}-[0-9]{7}-[0-9]{7}, other then that it will work, I tested it in javascript since i don't have a php server available. Here's what I used for reference. var referrer="http://www.amazon.com/exec/obidos/tg/browse/-/548166/102-6125745-6132915"; regex=/[0-9]{3}-[0-9]{7}-[0-9]{7}/i; var ar = regex.exec(referrer); Response.write (ar[0]); |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|