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

get font info from a font file
hello,

Does anyone know how to get font info from a font file ... using php of course !
<

Adding meta tags under Zend FW
Hello there, recently has come to my hands the FTP of a website which is running under Zend, I would

EU VAT Package 2010
Does any one know whether SAP will be developing new reporting functionality due the new VAT rules t

Am I setting up my sites oldschool?
Ok,

When I create a site I open a basic template that I have created that consists of a css f

MFC GUI Programming
I am working on a project right now that requires me to create a MFC Windows GUI. Basically it need

for some reason mysql query not working, not inserting, please check it out
This code is not inserting anything into my db, don't know why, the $_SESSION variable does contain

Slow data retrieval which requires improvement..please help
I am working on a Help Desk Ticketing system and have a page called MY TICKETS which shows all ticke

PHP webpage & array print issue
I have this code running, and it works perfectly … however, see my bottom bit about what I see

EXplanation help
Hey all,

I am still fairly new to PHP programming and I am trying to put together a page wher

Login page problems
I developed a website a few months ago and I am now having an issue with logging into it. The place

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