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

remove a ; from emails in textarea
Code: <?php

session_start();

$database_host = "localhost&qu

ME54/ME54N Conditional check for Release of PR
Hi Gurus,

My requirement is to put a check on the release of the PR with respect to the c

php multiple action on submit
I have a form which says:

<form enctype='multipart/form-data' method='post' action='pr

Doubles are giving me problems
Ok so, first of all i made a double = 0.05, but when running the debugger it shows up as 0.04999. I

Move array index to end
Hey guys,
Quick question:

I have an array that looks like this:
Code: [Select]$var =

Array question
Does anyone know how to create a program that takes the $ amount for 8 different departments and gi

Session login issue
I'm wondering how to fix a problem I'm having with a session-based login system

Say I go to h

Include a php
Hello,

I'm trying to include a function that shows the recent searches.
Example I have <

Xacute search within SQL results
I have a query that is pulling data, and I want to return a specific value from the results of that

question about stripslashes and real_escape_string
im cleaning up an old app that I wrote fixing some of the vulernabilities from attacks.

I hav

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