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

PHP/PKI
I am trying to set up a web application that uses pki. does anyone have a good tutorial to set this

dropdown menu
Hello everbody,

I am php newbie.
I need to develop a program that once click the drop do

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

strptime() equivalent for php4 ?!
Greetings!

this is my first post, thank you in advance for your replies.

Well, the ti

Not Loading Function Into Div
I'm not sure whether to put this under the php forum or ajax forum but because I tink it's more of a

How to give the privillege for triggers?
Hi,

How to give the privillage for triggers to particular user?

Please let me

Pop-up Banner
Hello Friends,I need to use banner in our client site.Example: www.example.com if i enter this site

Strip Slashes Help
I've got a script that i've downloaded of the net to edit multiple fields from my sql database, and

Problem in String replace program's output
Hi all,
I was trying to make a program which accepts a string and replaces it with another stri

SuperCali PHP Event Calendar
does anyone have any experience with the SuperCali PHP Event Calendar? I could use some assistance

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