Preserved Topic: preg_replace delimiter error (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: 127.0.0.1 |
posted 09-24-2002 16:35
I am getting a Delimiter must not be alphanumeric or backslash in the line that actually does the preg_replace in this code: code: $body = "Today, Pugzly decided he wanted a helicopter. So, Pugzly went out and bought one";
|
Paranoid (IV) Mad Scientist From: Somewhere over the rainbow |
posted 09-24-2002 16:40
The poster has demanded we remove all his contributions, less he takes legal action. |
Paranoid (IV) Inmate From: 127.0.0.1 |
posted 09-24-2002 17:11 |
Paranoid (IV) Mad Scientist From: Somewhere over the rainbow |
posted 09-24-2002 17:30
The poster has demanded we remove all his contributions, less he takes legal action. |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 09-24-2002 17:55 |
Paranoid (IV) Inmate From: New Jersey, USA |
posted 09-24-2002 17:56
Ini's right about str_replace. |
Paranoid (IV) Inmate From: 127.0.0.1 |
posted 09-24-2002 18:19
Actually, str_replace won't do what I need it to do. I only need it to replace the FIRST instance of $toreplace. code: <?php
|