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:

Did you know?Explore Trending and Topic pages for more stories like this.

'/^[0-9A-F]{6}$/'
No comments posted yet

Your Answer:

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

Not Loading Function Into Div
I'm not sure whether to put this under the php forum or ajax forum but because I tink it's more of a

Default TimeZone
The server I'm working with is hosted in America so all times inserted into the database are coming

PHP mail() rejected by SMTP
I'm currently working on a newsletter application which is installed on a windows 2003 server runnin

Multiple Pages
Hi. Im very new to php. I'm trying to create a basic login/registration page.

So I have a bas

cyrillic string conversion question
Hello,

First time here...

I would like to know if there is a way to convert a

Multiple Options for a Single Page
For this example I want to use the Handlers option which is under Fed Admin and all the related codi

$variable $variables type question
I need to be able to designate an array element dynamically, so I thought to use a variable variable

need Array help
This is what I have to do.
$teamname[1] = "Red Sox"
$teamname[2] = "Gian

Displaying image pathname instead of image
Hello

Im trying to upload and then display images from a mysql database - Its only basic and

OPINIONS WANTED
This is my login page code, and I want your opinion on it please!

Code: // Login ~ CHECKS

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