Hi
> for the first case - using "\n", try :
>ereg_replace('\n+', '\n\n\n', $str)
This is right, apart from the fact that \n characters will no be parsed
with single quotes. Try this...
Sorry, just a minor thing.
Mike
--
MGS2 Online
http://www.mgs2online.f2s.com
--
PHP General Maili
nt: Thursday, November 22, 2001 2:56 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Need regular match help - possibly
I need a routine that will allow me to trap multiple and/or line feed
characters and convert them to a constant number. As an example, let's say
that you have text that has 10 ca
I need a routine that will allow me to trap multiple and/or line feed
characters and convert them to a constant number. As an example, let's say
that you have text that has 10 carriage returns and/or line feeds. I want
to limit this to 3. So, I need to be able to parse the line to detect the
m
3 matches
Mail list logo