Preg_match question


Posted on 16th Feb 2014 07:03 pm by admin

I want to use preg_match to make sure a string is always 6 characters long and only contains 0-9 and the letters A-F.

I have this but it does not work:


'/^[0-9A-F]{6}$/'

No comments posted yet

Your Answer:

Login to answer
254 Like 34 Dislike
Previous forums Next forums
Other forums

PHP and XML image gallery variable issue
I'm trying to display the large image on the same page as the thumbnails, to do that I'm passing a v

Problem with Sending Mail by PHP
hello all,
I m new to php, can u plz provide me the code to send mail by php having CAPTC

Help with looping
I have a comma separated list of colors taken from a database ($ICo) and a directory of images named

need help to creat database
Hello Team, please guys i am stuck from three days with paypal issue for IPN but no luck yet now i w

delete comma
HI,

How to delete "," at the end of the string.
Code: $match = 2009/02/03/a2corr

Displaying image from database
Hi,

I've got a site where that's got a database behind it. Currently it has loads of items in

dinamic "textboxes"?
Ey all, my first post here, i hope its not a hard one

I display mysql results in a table

question about header() security
is is safe to just use the header() function to redirect someone if they are, say, not logged in? or

remove trailing slash from array
I have the following array which contains trailing slashes I need to remove. What is the best way to

using file_get_contents??
okay how would i create a script using file_get_contents() in php have it grab search pages 1-20 and

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash