Quick preg_match question
I think my pattern is screwy but I'm not sure.
Trying to replace . ''; with just a ; What'd I do
preg_replace('/. \'\';$/', ";", $output);
In your pattern, is the "." supposed to be a literal period (full stop)? If so, it needs to be escaped with a back-slash.
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
How to Ask Questions the Smart Way
(not affiliated with this site, but well worth reading)
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)