Đã Đóng

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

Kỹ năng: PHP

Xem thêm: 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, preg php, string php, car sale, php preg match, wanted php usa, php string, preg match money php, php sale, text match, car price script php, php fusion car template, free php booking car

Về Bên Thuê:
( 82 nhận xét ) Phoenix, United States

Mã Dự Án: #1639348

10 freelancer đang chào giá trung bình $48 cho công việc này

sureshdevi

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

$34 USD trong 1 ngày
(519 Đánh Giá)
7.3
VileGnosis

Details in PMB

$30 USD trong 0 ngày
(163 Đánh Giá)
6.6
Alkobazik

Ready to update the script. Details in PMB.

$30 USD trong 1 ngày
(15 Đánh Giá)
4.6
diamond1027

Hi, I can easily do it. Thank you.

$40 USD trong 1 ngày
(20 Đánh Giá)
4.5
RobNL

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

$30 USD trong 0 ngày
(8 Đánh Giá)
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 http://www.sureterm.com/ http://www.heydjbobby.com/ http://www.kickstart.com.au/ http://www.buybluetr Thêm

$200 USD trong 4 ngày
(2 Đánh Giá)
3.4
siteexpert

Find Solution in PMB.I m ready for that.

$30 USD trong 1 ngày
(3 Đánh Giá)
3.5
tweety0628

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

$30 USD trong 0 ngày
(5 Đánh Giá)
2.5
anutech12

i'm ready this project.

$31 USD trong 2 ngày
(0 Đánh Giá)
0.0
jiyongcheng

just now i spent some time resolve this

$30 USD trong 1 ngày
(0 Đánh Giá)
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 http://aspirewebservice.com/projects/freelancer/preg_match/ I am ready to negotiate your current bid Thank Thêm

$30 USD trong 0 ngày
(0 Đánh Giá)
1.4
Renix

Hello! Ready to work! Satisfaction guaranteed..

$30 USD trong 0 ngày
(0 Đánh Giá)
0.0