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

Not connecting to DB using ruby, error:env.c:257:in oci8lib.so: ORA-12154:
Hi All,

I am trying to connect to the database server from the client server using ruby and f

PHP Array quick help
I need

$_SESSION{'username'} to be like this:


if $_SESSION['username'] = "gay

listing help
Hi,

at first, great new design!!! I like it,

i got a problem,

I want to list so

Windows Authentication
I have a website which is windows authenticated.
now i want something more on this application.<

how do I show what a user have selected from a checkbox?
From my code below, how would i show which check boxes have been checked and which radio buttons sel

square instead of number
Hello
I do not know why but this code seems to work fine only in my xampp local insallation but n

Last character removed
I have created a string from an array. I have inserted commas from my form values. I am trying to re

Setting/Modify Headers using mail() function
I have a question about setting email headers when using mail() in a php script.

When I send

Drop Down and text box issue
Is it possible to set a drop down list and text boxes to a certain width?

here is my code

dropdown box help - open php files to textarea
Hi, I am using tinymce to edit content located in several php files. The code I attached works but 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