Hey

I'm trying to validate these strings

                wmli001234    wmli001234a

using this

if( eregi( "^" .
    "wm" .                                       //first 2 letters
    "((li)*(si)*(wi)*)+" .                   //next 2 letters shal be ether
LI / SI / WI
    "[0-9]{6,6}" .                           //next 6 numbers
    "[a-z]{0,1}" .                            //if extra letter (only 1
letter)
    "$", $wm_id))
    return TRUE;
    else return FALSE;


can anyone help me ?????


Anders



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to