...

View Full Version : trouble with trim preg replace...



jeromepelletier
04-27-2006, 02:04 AM
im using:
if($varCheck && trim(preg_replace("/[a-zA-Z0-9,@._]+/", "", $varCheck))) $stop = true;
if($stop=="true")
{

blah

}

how would i go abouts adding "-" ( a hyphen, -) to preg replace?

marek_mar
04-27-2006, 02:06 AM
preg_replace("/[a-zA-Z0-9,@._-]+/", "", $varCheck)

chump2877
04-27-2006, 02:09 AM
lol, sweet and simple :p

jeromepelletier
04-27-2006, 02:13 AM
preg_replace("/[a-zA-Z0-9,@._-]+/", "", $varCheck)


eh nvm :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum