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

LIMIT $start, 10... how to pass last value queried into next page with GET??
Ok I know how to display the first or last 10 results of a query...

$result = mysql_query(&q

need a script for 3 pages
I have a customer who wants me to set up a site with a number of pages with the following requiremen

Images in email problem
I found this script for sending emails, it works but if the email has <img src="image.jp

download directory onto C drive
I am attempting (if this is possible) to write a routine to automatically dump the contents of a dir

Placing and array within an array then sorting it!
I have a page that runs two large mysql queries and saves the results into arrays, in php I then per

Search in the PHP Files
have to search asterisk(*) in the php code of the php files .
In the html page one text box

Connect to database that isn't localhost
I am currently doing a small script for a company that doesn't have mySql support on there hosting.

try catch error
I have been trying try catch but, I can't get it to work. The code opens a non existing file called

Undefined index on my form
ok im getting Undefined index on this line.. print_r($_REQUEST['form']);

below is the full sc

validating url
im trying to validate url's sent to me by a form
the url's im collecting are for placing banners

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