From: "bedul" on
WHat function i use to make this sentence to bold only for a
text inside " "

1. Per costruire i Paper Model "munirsi" di un tubetto di
colla vinilica, un paio di forbici, e una penna, o un
pennarello, di sezione tonda, con la quale aiutarsi a
modellare "le parti cilindriche".

i hope the sentece will be

1. Per costruire i Paper Model <b>munirsi</b> di un tubetto
di colla vinilica, un paio di forbici, e una penna, o un
pennarello, di sezione tonda, con la quale aiutarsi a
modellare <b>le parti cilindriche</b>.


i have list text that should be bold if found, but there soo
many text (i think there was more than 20), i can't always
use str_replace, is there another way

sry my bad languages


From: "Viola Holownia" on
hi

Have you tried ereg_replace() ?
http://www.php.net/manual/en/function.ereg-replace.php


cheers
viola

2008/2/7 bedul <landavia81(a)gmail.com>:
> WHat function i use to make this sentence to bold only for a
> text inside " "
>
> 1. Per costruire i Paper Model "munirsi" di un tubetto di
> colla vinilica, un paio di forbici, e una penna, o un
> pennarello, di sezione tonda, con la quale aiutarsi a
> modellare "le parti cilindriche".
>
> i hope the sentece will be
>
> 1. Per costruire i Paper Model <b>munirsi</b> di un tubetto
> di colla vinilica, un paio di forbici, e una penna, o un
> pennarello, di sezione tonda, con la quale aiutarsi a
> modellare <b>le parti cilindriche</b>.
>
>
> i have list text that should be bold if found, but there soo
> many text (i think there was more than 20), i can't always
> use str_replace, is there another way
>
> sry my bad languages
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
From: Elizabeth M Smith on
Viola Holownia wrote:
> hi
>
> Have you tried ereg_replace() ?
> http://www.php.net/manual/en/function.ereg-replace.php
>
>
> cheers
> viola
>

I would NOT suggest ereg_replace, especially on windows - if you need to
do advanced replacement and str_replace doesn't work, try preg_replace -
http://php.net/preg_replace

Regular expressions are your friend.

Thanks,
Elizabeth
From: trystano on

Can I just ask what the difference is between ereg and preg_replace? Thanks.

Tryst







-----Original Message-----
From: Elizabeth M Smith <auroraeosrose(a)gmail.com>
To: php-windows(a)lists.php.net
Sent: Fri, 8 Feb 2008 14:26
Subject: Re: [PHP-WIN] string function










Viola Holownia wrote:
> hi
>
> Have you tried ereg_replace() ?
> http://www.php.net/manual/en/function.ereg-replace.php
>
>
> cheers
> viola
>

I would NOT suggest ereg_replace, especially on windows - if you need to
do advanced replacement and str_replace doesn't work, try preg_replace -
http://php.net/preg_replace

Regular expressions are your friend.

Thanks,
Elizabeth

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php







________________________________________________________________________
AOL's new homepage has launched. Take a tour at http://info.aol.co.uk/homepage/ now.
From: Niel Archer on
Hi

> Can I just ask what the difference is between ereg and preg_replace? Thanks.

preg* are PCRE compatible functions. ereg*are POSIX Extended.
AFAIR, the PCRE ones support several additional features and are binary
safe, while the POSIX ones are not.

--
Niel Archer