A/S/L Blocker

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mmcoolkid94
Forum Newbie
Posts: 8
Joined: Mon Jun 19, 2006 9:07 pm

A/S/L Blocker

Post by mmcoolkid94 »

Is there a way to search for a string that is number/letters/letters? Cause I am trying to add this to a word blocking thingy I am trying to work on. Anybody have some code for one that I could look at. (Yeah, I know that ppl prob. wont give me any and I should do it myself to learn.)

Thanks
User avatar
tecktalkcm0391
DevNet Resident
Posts: 1030
Joined: Fri May 26, 2006 9:25 am
Location: Florida

Post by tecktalkcm0391 »

Try this for a blocker thing.... viewtopic.php?t=49453

Dunno about the A/S/L thing... sorry
Robert Plank
Forum Contributor
Posts: 110
Joined: Sun Dec 26, 2004 9:04 pm
Contact:

Post by Robert Plank »

Code: Select all

if (preg_match('|[0-9]*?/[A-Z]*?/[A-Z]*?|i') {
   // asl...
}
Last edited by Robert Plank on Fri Jun 23, 2006 10:40 am, edited 2 times in total.
Grim...
DevNet Resident
Posts: 1445
Joined: Tue May 18, 2004 5:32 am
Location: London, UK

Post by Grim... »

Er, isn't that number / letters / number?
Robert Plank
Forum Contributor
Posts: 110
Joined: Sun Dec 26, 2004 9:04 pm
Contact:

Post by Robert Plank »

Grim... wrote:Er, isn't that number / letters / number?
Oops yeah... edited... too early in the morning.
Post Reply