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

Significance of BPM
Hi Experts,
I am a novice in BPM , I just want to know how BPM as permenant department is

rand() function
just a general question guys a girls, is the rand() function 100% random or is it based on time?

an interesting question
Greetings folks, got to ask an interesting question...

let say
i have created a function s

How to find OS bit version
How can I tell the person browsing my site is running 32, or 64 bit operating system?

building a function with multiple outputs
I want to build a function that has multiple outputs.

I know but am not to sure how I should

Simple code help with redirects
I am trying to figure out a redirect script that detects if the browser is IE 7 and if it does, redi

confused between ' ' and " "
there is a php i set:
$begin_date_query = mysql_query( "SELECT SUBDATE(due_date, INTERVAL $d

Problem in String replace program's output
Hi all,
I was trying to make a program which accepts a string and replaces it with another stri

Character increment
Hi,

I am facing a scenario like above,but in my case i want to show up like Col A,Col B etc..

ok i need to join all this pages to make 1 neat code
i have 5 pages that make up my tv guide it works 100% but i want to make it 1 page if i can or 2, i

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