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

string to currency format
Hi guys...

Actually I chunk out some data from txtfile and one of the data contains amount va

Best way to read this text file.
Hi.I am planning to make a small application in C# to convert the players from Football manager 2010

Tree Menu
Hi guys,

Can anyone help me making a tree navigation system? I have a site where I'm allowin

onclick problem
I have <input type="text" name="message">
<a href=page2.

mysql timestamp manipulation
How could I use a timestamp (e.g 2009-10-30 13:20:35 ), and with php find out if it is:

from

Opening Multiple Files/Links in Order.
I want to open links in order/one-by-one and check each for a specific string.

Example:
I

Displaying pictures
i have worked my way through storing images in directory and storing the location in mySQL db.Now i

big pagination problem in php
<?php

$connect = mysql_connect("localhost", "root", "")

Filling gaps in dates
So i'm doing a query for sales data and my return array looks like this

('date' => '20

BSP Ext - tableView - Sort - NEWBIE
Hi,
I have been trying to get the sort to work. I have defined the column definitions by fillin

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