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

Calculating n! using vector
#include
#include
#include

using

Renaming array keys
The issue: renaming array keys inside a foreach loop.

I'm trying to build a pie chart image w

square instead of number
Hello
I do not know why but this code seems to work fine only in my xampp local insallation but n

Querying info from one table based on info in another
Hi, I am currently trying to make a part for my user driven website where one user can subscribe to

Something like an INI editor or a DelimitedText-Editor
Hi all,

Am very, very, very new to PHP and not sure if I should be posting this to a Javascri

Error in SQL Syntax HELP!!!
I have this page:

Code: <?php

session_start();

//connect to server and s

asking for direction
I have 2 tables in my data, which are "post" and "event"
I won't make a summa

Unidentified index error in a simple form
I have been trying to make an HTML form that is handled by a PHP script. So far my attempts to get i

Wierd echo error?
Hi, i got the most wierd php error ever and i don't know why..
Code: echo "<t

Oracle Text CTX_DOC.snippet slow
I have a table (FILE_TABLE) that contains a blob column (ft_file) and I have created the following O

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