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

Multiple while loops
I have several DB queries that I know should be returning results and aren't. I have a feeling it ha

SAP Logon Failed
I tried to login to SAP through MMC.

When i click start and give password.

it

Session is not saving
I am not trying to do anything too fancy, I am just trying to get some $_SESSION data to save and us

mail() problem
Hi Guys,

I've set up a contact email form. It sends the information fine, but it sends it to

imap: how to save a copy of sent emails to sent elements
Hello my friends,

I am writing an online emailing application with inbox outbox/sent elements

Encrypt php code?
Is it possible to encrypt php code in files,
so that it displays a load of unreadable characters

How to submit a form to the same page?
I have a table containing information about books in my library and this table has the following col

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

IP Based Cron Jobs
I run cronjobs on my website. After one of my visitors got curious and tinkered around he realized h

cURL error
So here is my code... I got it off of here... http://www.youtube.com/watch?v=XcgQUsorF_8
Because

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