Lost in Ereg_replace
From: W. Paulisse (ihate_at_spam.nl)
Date: 03/30/04
- Next message: W. Paulisse: "Re: Lost in Ereg_replace"
- Previous message: Gerald Meazell: "Getting telnet to listen on multiple ports"
- Next in thread: W. Paulisse: "Re: Lost in Ereg_replace"
- Reply: W. Paulisse: "Re: Lost in Ereg_replace"
- Reply: W. Paulisse: "Re: Lost in Ereg_replace"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 30 Mar 2004 16:06:17 +0200
I've tried to figure this out myself but I find myself getting really pissed
off 'cause i can't get the right thing ]:
please help:
$text = "hello i am wondering if you are really so mini like";
$text = "i am wondering if you are really so mini like";
$text = "i, the human";
I want to replace the 'i' in these strings. Not EVERY i. just the one that
is not 'surrounded' by any alphanum char.
the i's in "mini" and "like" and "if" should NOT be replaced.
but i's in "i" and "i,"
I can't figure this out. I've made a list of which things the ereg_replace
must comply. but i don't know how to implent it
a) replace if the I is surrounden by spaces
b) replace if the string starts with an I and then a space
b) replace if the string end with an space and then a I
any toughs?
Tia
W. Paulisse
- Next message: W. Paulisse: "Re: Lost in Ereg_replace"
- Previous message: Gerald Meazell: "Getting telnet to listen on multiple ports"
- Next in thread: W. Paulisse: "Re: Lost in Ereg_replace"
- Reply: W. Paulisse: "Re: Lost in Ereg_replace"
- Reply: W. Paulisse: "Re: Lost in Ereg_replace"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]