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

DATEDIFF Question
First time post, and of course it is a help question.

I am using a WP plug-in to display prev

Problem with a select distinct
I have a problema with a select distinct, I have the next sql:

select distinct a,b,c,d fr

PHP/Database issue
My friend is helping me make a database where you go to a certain webpage of my site and the page wi

Parse String
I need to parse the string below into three variables. How would I do that?

john + 10/20/2008

Vertical Alligning - Not working in 1 cell?
<?php

echo "<table id="valign" width="60%" style=

Creating a custom API
I'm creating a site, and I need to create a basic API. Unfortunately I have no idea where to start.

First root of a number
Hi,

I can't find any function in php to give me the first root of a number.
Is there any

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 to ... (FAQs)
... get e-mail notifications As several people asked how to get e-mail notifications when new posti

login and redirect
hello! can someone help me.. can you give me an idea.. I want to make a login page and redirects it

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