|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
||||
|
||||
|
on my news site I have a regular expression that changes " squote " to "'" and a line break (\n) to <br />. However the function does not seem to want to work and I have no idea why. I have included the necessary files. you can also see the output at http://www.suanhacky.org/TEST/news.php
__________________
CHornJr "One day I'll know what I am doing" ![]() My Blog Suanhacky Lodge #49 Rebel Squadrons |
|
#2
|
||||
|
||||
|
It won't work for me when I use arrays either. Weird. Just perform each match separately:
PHP Code:
That worked for me. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Preg Replace Problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|