Hi all,

I have problem that a newbie like me can t resolve without screaming.

I m under windows it s important because lines are delimites by \r\n not by
\n only in nix like os.

I hav a pattern like

Bonjour toto // in one line
Bonjour
toto // but can take the form too
B
onjour toto // too ...

I try to find a script wich can make replcement of this pattern, i find
preg_replace but don t find the option to work elsewhere on lines.

something like  :
$data = join ("",file('./data.txt'));
$data=preg_replace('/Bonjour toto/s','Salut toi',$data);
echo $data;

thansk a lot for ur answers an 4 the forums.

a+.


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to