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

MII Netweaver Server stopped due to CPIC connection Problem
Dear Experts,
We have SAP XMII 12.0 setup running on Netweaver 2004s,7.0, Java Stack only.

re calling a function without including file
Hi,
i am new to programming in php, i was just checking the wordpress code and found out in the w

remove trailing slash from array
I have the following array which contains trailing slashes I need to remove. What is the best way to

How do I send data using an html link
Hi

If I have
<a href="main_file.php">

How do I send data t

Inserting multiple records from single form
I've found a number of threads that deal with this issue, but I'm new to php and coding language so

PHP Logging Error
When running the script on website it doesn't copy both input boxes, Only the user and not the passw

multipart emiail forms
Hi All,

I am new to the boards and I've been working on a form (which is rather massive, imo

Need some ideas as to how to go about sorting this array...
Here's how the array's are created..

Code: <?php
while ($x = readdir($dp)) {

Help with PHP Email Script
Hi guys,

I'm a newbie to php and need help with the script below:

At the moment when I

retrieving images from mysql database using php
So I've been trying to figure out how to store images in a mysql database, and as far as i can tell

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