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

help with multi-update
Now sure how to ask this really....
10g database if that matters.

I have a customer

some questions
Hello,

I am looking for the answers for following questions:

1) Does PHP support overl

radio button reamains checked
Hello i'm trying to keep the state off my radio buttons so it shows which ones where clicked after t

MySql timezone
Code: $sql = "SELECT *, date_format(date, '%m/%d/%Y at %I:%i %p' )as date FROM comments WHERE t

Do not allow posting of whitespace
Currently the script below works if the user does not type a name/message, but if i create a whitesp

dynamic table with forms
I have a table that is populated with mysql data and in teh first column there is a raido button tha

Character Set Setup
Whats the best character set to use if you want every character to work, and also how do you make yo

Need help in log in and log out?
hi there all of u. i have recently created a site for someone. i have placed log in and log out and

mysql timestamp manipulation
How could I use a timestamp (e.g 2009-10-30 13:20:35 ), and with php find out if it is:

from

phpmailer class & pop.gmail.com?
Code: <?php
$mail->IsSMTP();
$mail->Host = "pop.gmail.com";

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