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

Save data in input fields when they press "BACK BUTTON"
Hi, this is html form: And let's say they get a error "Please enter ur title must be more then

passing an array of objects after submit
How do I do this? This is what I have tried and it is not working.

<form method="

Get word number x from string?
How can I use a function to loop through a string, and "have a look at" every word in the

I am stumped
OK. Here is what I am trying to do. I have the conditions set, and if the conditions are met, I want

get font info from a font file
hello,

Does anyone know how to get font info from a font file ... using php of course !
<

PHP, jAVASCRIPT setting input values, why isn't it working?
Hi:

I am calling this javascript:
<script language="javascript">

Can you help please? Php file
I have to write this php file to allow users to register their nicknames on nickserv

For an I

Protecting forms
Alright, I want to protect some forms of mine from SQL Injections, because I had someone earlier spa

Credit card verification
I have a client who wants to process credit card transactions from his web site rather than the goin

ORA-00932: inconsistent datatypes: expected - got CLOB
SO : windows xp
database : XE

there is a table (transito) with two fields of clob

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