Timeline for Regex to replace one string with another in PHP
Current License: CC BY-SA 3.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 14, 2013 at 0:14 | comment | added | Robbert | My point was that you were missing the forward slashes to delimit your regular expression. The Rubular link you posted addes the forward slashes for you, but preg_replace will now. I see that you're now using #, but I'm not sure that would work in PHP. | |
| Jun 14, 2013 at 0:11 | comment | added | Robbert | The Rubular you posted adds the delimiters for you. | |
| Jun 14, 2013 at 0:10 | history | edited | Halcyon | CC BY-SA 3.0 |
again .. missing delimiters
|
| Jun 14, 2013 at 0:09 | history | edited | Mike Perrenoud | CC BY-SA 3.0 |
added 93 characters in body
|
| Jun 14, 2013 at 0:09 | history | edited | Halcyon | CC BY-SA 3.0 |
added delimiters
|
| Jun 14, 2013 at 0:07 | history | answered | Mike Perrenoud | CC BY-SA 3.0 |