|
|
Browse by Tags
All Tags » php regular exp... » html
-
Hello RegexAdvice users.
I am at this time trying to update my template system, and i have desidet to use regex insted of ALOT of explodes :D
I this i will start out with showing you what my templates look like.
code:<html>
<head>
<title>Some test</title>
</head>
<body>
<php:if ...
-
Thanks again Sergei. I found the solution, your regex was perfect, it's just a PHP oddity. This page on php.net:
http://www.php.net/manual/en/function.preg-replace.php
describes pre_replace and c_stewart0a at yahoo dot com had the solution which is:
"you will want to quote your searching expression with /"
This did the job. So ...
|
|
|