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

Module pool selction screen parameters combination logic
Hi floks,
Am new to the module pool development ,Recently i have created one program based on

Conditions of info record - Error
When i created GR (901) and PO create automatic my PBXX is obtain the net price of info record but

update sql when refresh - php
hi
I have made a table (attachement)

the users can update the sql database using + or x bu

PHP Cannot redeclare class
I have 6 files, and two of them do not seem to want to play well. I keep getting a "Cannot rede

Menu restriction
How can I restrict the individual menu that would appear when a user logs in so that all users are c

parse error
On my local machine I keep getting parse error for my footer. When I put it online, it doesn't show

Upload file!
Ok i have a form..
Code: <form name="form1" method="post" action=&quo

Default TimeZone
The server I'm working with is hosted in America so all times inserted into the database are coming

Sequencing or queuing parallel process
Scenario is as follows
There is one parent process say P1 and 4 child processes say A B C D

Parse XML
Good day,

I use oempro software and try to parse XMLReturn but it's not working for me, simpl

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