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

do while conditions
i want to display 6 images in a 2x3 table
now what would be the correct logic to
count that th

Escaped characters
I have a script that allows you to post news to the home page of my site. Along with the news is the

Post, not working, please help
The error is:
Method Not Allowed
The requested method POST is not allowed for the URL /student

DataTable Help Required
Hi all I am creating an app that utilises and MS Access back end and queries it quite a bit at vario

PHP and Javascript
Hello Everyone,

I have a page that needs a javascript code to be written between PHP code but

Find current logon time
Hi,
in my sql script i want to query and find out the logon time of the current session.
<

generating random codes
Hi guys n gals,

I have a requirement to generate 250,000 unique codes...

These codes a

Auto fill in input value based on User_ID
Hello,

I'm looking form some input on the following problem.

User loads page ->

GMail like Chat in ASP.NET
Hi,Can anyone suggest me, how to incorporate GMail like chat in my existing ASP.Net application.I wa

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

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