Maybe I better ask my question different...
what i want to do is, to highlight certain text in a string...
for example: This equals this equals tHis... has to become:
bThis/b equals bthis/b equals btHis/b... so dispite the case,
the b's should be put around it...
does that make it easier? not
Seems like that makes it a LOT easier.
Use eregi_relace() instead of ereg_replace(). eregi allows for
case-insensitivity.
Try
eregi_replace(this,b\\1/b,$str);
That should do it, though I haven't tried it myself.
On Thu, 2002-01-31 at 14:14, Edward van Bilderbeek - Bean IT wrote:
Sorry, that should be:
eregi_replace((this),b\\1/b,$str);
On Thu, 2002-01-31 at 14:20, Richard Crawford wrote:
Seems like that makes it a LOT easier.
Use eregi_relace() instead of ereg_replace(). eregi allows for
case-insensitivity.
Try
PROTECTED]
Sent: Thursday, January 31, 2002 11:20 PM
Subject: Re: [PHP] ereg et all - new question..
Seems like that makes it a LOT easier.
Use eregi_relace() instead of ereg_replace(). eregi allows for
case-insensitivity.
Try
eregi_replace(this,b\\1/b,$str);
That should do it, though I
- Original Message -
From: Richard Crawford [EMAIL PROTECTED]
To: Edward van Bilderbeek - Bean IT [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, January 31, 2002 11:20 PM
Subject: Re: [PHP] ereg et all - new question..
Seems like that makes it a LOT easier.
Use
5 matches
Mail list logo