RE: [PHP] Need regular match help - possibly

2002-07-25 Thread Mike
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... ?php ereg_replace(\n+, \n\n\n, $str); ? Sorry, just a minor thing. Mike -- MGS2 Online

RE: [PHP] Need regular match help - possibly

2001-11-21 Thread Martin Towell
for the first case - using \n, try : ereg_replace('\n+', '\n\n\n', $str) for the second case - using br, try : eregi_replace('(br)+', 'br', $str); Martin -Original Message- From: Gaylen Fraley [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 22, 2001 2:56 PM To: [EMAIL