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

compile php5 with DOM
Hi,

I can't manage to compile php 5.3.0 from source on Windows to include DOM,
in spite of

JQuery, Masterpage, and Control issue
Hey everyone, I am using JQuery in several sites so I thought it would be best to place the library

Random date selection
i want to select random date with time(hour+minutes+sec) where date is specified(10/22/2009) and tim

Query failed issue with php script but works fine in mssql manager!
hi i have the script below which copies data from one table to another but will only insert new data

getting most records by count
Code: [Select]<?php

$connect = mysql_connect("localhost","dam

Data type mismatch
Hi,
I am migrating data from algol to c.I mapped real datatype in algol to double datatype in

very easy question about SQL info
Hello,
I think that I have a very easy question.
I know how to create a form using php SQL and

Pagination
Okay here is the page in question: http://blenderteachings.000a.biz/tutorials.hamishhill.php

login page does not execute a else statement
I've created a login page using sessions.
When an incorrect user name or password is entered then

php call servlet
I have done a php backup application .
So there is a form that user pick some files to zip and d

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