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

Credit card verification
I have a client who wants to process credit card transactions from his web site rather than the goin

add to sql result
ok see rite now my sites hit counter is counted from the mysql visitor log i need to clear it aft

Java API in PHP?
I have an application that we use internally here at the office.

The software company provide

php title problem
Hi,

I am having a problem managing my page title with PHP.

Currently I have my <

Scene graph using Direct3D?
There are several C++ scene graph based packages available for OpenGl, like say OSG,

http://w

Request for tunning the below query
Hi,

Can any one help me on the below query while improving the performance,

mysql UPDATE request not working and driving me crazy!!!
Hi,

I have been stuck on this for ages.

Quite simply I am trying to update my database

C problem struct and string
Hi guys,

This is my first post and I'm hoping the experts here can help me solve my problem.<

how to get IP address?
hey guys,

i have this code which is supposed to get me the IP address of my site visitors:

Why will this program not run if the variables are not global?
Hey guys I have a kind of perplexing situation that is probably simple, but I can't seem to understa

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