Before anyone has a go at me, I put this in here because its a PHP post...
I'm having problems with getting spaces to be recognised in my string as ok. At the moment I have;
------
if (!preg_match("/([0-9a-z]\s){1,$max_title_length}$/i",$Price)) { error("Your advert title was incorrect. It must be between 1 and $max_title_length."); }
------
$max_title_length is provided as 255 in the config file, and I know it is correct as it shows 255 ok in the error. Does anyone know how to include the space in there, but still limit the sentance to 255 chars?
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
I'm having problems with getting spaces to be recognised in my string as ok. At the moment I have;
------
if (!preg_match("/([0-9a-z]\s){1,$max_title_length}$/i",$Price)) { error("Your advert title was incorrect. It must be between 1 and $max_title_length."); }
------
$max_title_length is provided as 255 in the config file, and I know it is correct as it shows 255 ok in the error. Does anyone know how to include the space in there, but still limit the sentance to 255 chars?
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!