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

utf8_general_ci error ??
I have all kinds of data to be inserted in database table

//I am getting this error

Yo

media recovery
Hi,
i startup the database i got the error

SQL> startup
ORACLE instance started.

php or sql?
Sorry not sure if this is a sql problem or php the following code is supposed to delete data from th

Change Web page language
i doing this thing first time but i dont find any suitable solution for it. On the demand of user. I

jquery validation in codeIgniter
hai i need to add client side validation to my fiels which are selected in a forloop.the fields are

$_GET problem
Hi all,

Have a bit of a problem with a little piece of code, I am not sure if this should be

PHP and MySQL on intranet?
Is it possible to use both these on an intranet network?

Php If in MySql query (hiding labels if a field is empty)
Okay, I've been trying to do this for a while, and I'm finally going to ask for help so I can get th

Edit MySQL Row Using PHP and HTML Form
Hello,

Here's what I'm trying to do. Build a page where a user enters a MySQL row number in.

Is this Safe or Unsafe?
Hi i made a few pages with lots of peoples help now i just want to know if they are safe or not can

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