Re: Regex help (SOLVED)

From: Date: Mon, 15 Mar 2004 20:42:03 +0000
Subject: Re: Regex help (SOLVED)
Groups: php.general 
Request: Send a blank email to php-general+get-180491@lists.php.net to get a copy of this message
Hey Guys, Solved this, took your advise and avoided regex as its an overkill. Case you're interested: $th_var="98797-234234--2c-something-2c"; $piece = explode("--2", $th_var); echo $piece[0]; (and if i want to use the second "part"... $piece[1] ) Thanks to everyone who gave me examples, links and suggested alternatives like explode(), but personally I thought explode too was a regex..:-(. Cheers, -Ryan A

« previous php.general (#180491) next »