Fermé

php preg_match

Some people help me please

Demo script:

<?

$string ="The sale price is $99 text text text";

if (preg_match('/\$(\d+\.\d{1,2}\b|\.\d{1,2}\b|\d+(?!\.))/', $string, $match)) {

$price = $match[1];

}

else {

$price = '';

}

?>

<?=$price?>

-----------------------------------------------------------------------------------

Please modify this script to make $price_two echo 120

<?

$string ="The sale price is 120$ text text text";

if (preg_match('/\$(\d+\.\d{1,2}\b|\.\d{1,2}\b|\d+(?!\.))/', $string, $match)) {

$price_two = $match[1];

}

else {

$price_two = '';

}

?>

<?=$price_two?> 120

-----------------------------------------------------------------------------------

Please make this out put $vin echo is ABV67HKDR1298

<?

$string ="this car for sale vin:ABV67HKDR1298 in phoenix, usa";

if (preg_match('/\$(\d+\.\d{1,2}\b|\.\d{1,2}\b|\d+(?!\.))/', $string, $match)) {

$vin = $match[1];

}

else {

$vin = '';

}

?>

<?=$vin?> ABV67HKDR1298

Compétences : PHP

Voir plus : string match, match string, php usa, Phoenix, price match, modify car, php script echo, echo script php, echo script, php echo script, script match text, usa php, car demo, php preg_match php, preg_match, script preg_match, preg php, preg_match match, php preg_match, string php, php echo php echo php echo, php echo php echo php echo php echo, CAR SALE, php preg match, wanted php usa

Concernant l'employeur :
( 82 commentaires ) Phoenix, United States

N° du projet : #1639348

10 freelance font une offre moyenne de $48 pour ce travail

sureshdevi

I can make this preg_match regular experssion script. I can complete this work in next few hours. Thanks, Suresh

34 $ USD en 1 jour
(519 Commentaires)
7.3
VileGnosis

Details in PMB

30 $ USD en 0 jours
(163 Commentaires)
6.6
Alkobazik

Ready to update the script. Details in PMB.

30 $ USD en 1 jour
(15 Commentaires)
4.6
diamond1027

Hi, I can easily do it. Thank you.

40 $ USD en 1 jour
(20 Commentaires)
4.5
RobNL

Hi, it's already done, please check PM.

30 $ USD en 0 jours
(8 Commentaires)
3.8
ecitius

Hi I am ready to work for you. Lets come on skype for more discussion. My skype Id " E-citius " WEB DESIGNS [url removed, login to view] [url removed, login to view] [url removed, login to view] [url removed, login to view] Plus

200 $ USD en 4 jours
(2 Commentaires)
3.4
siteexpert

Find Solution in PMB.I m ready for that.

30 $ USD en 1 jour
(3 Commentaires)
3.5
tweety0628

Hi classifiedsguy, I've allready made this script. Is ready to be delivered. Please check PMB.

30 $ USD en 0 jours
(5 Commentaires)
2.5
anutech12

i'm ready this project.

31 $ USD en 2 jours
(0 Commentaires)
0.0
jiyongcheng

just now i spent some time resolve this

30 $ USD en 1 jour
(0 Commentaires)
0.0
pavanmulani

Hi, I am new to freelancer and eager to do my first project your job is already done you can check it on [url removed, login to view] I am ready to negotiate your current bid Thank Plus

30 $ USD en 0 jours
(0 Commentaires)
1.4
Renix

Hello! Ready to work! Satisfaction guaranteed..

30 $ USD en 0 jours
(0 Commentaires)
0.0