Calling Regular Expression experts!

From: Date: Sun, 23 Jul 2000 21:47:18 +0000
Subject: Calling Regular Expression experts!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-7786@lists.php.net to get a copy of this message
Hi all :-) I Got a small reg exp problem. I got a string like this $urldata = .."- SamsungYEPP1.995:- 2.500:- DiamondRIO 5002.990:- - SonyMemorysti...3.990:- 4.000:- I ".. What I want to do is to get the "1.995" value into a new string. The problem is that the 1.995, could look something like this : 1 995 1985 2.995 1,935 . How Do I write a regular expresion for that? I have done something like this: $priset= eregi("SamsungYEPP(.*):-",$urldata); Anyone got some idears to fix this? //Jonas

« previous php.general (#7786) next »