Hi,
I've run into a wall in which I'm not able to figure out the expression needed to make a match.
The string is:
Code:
# BEGIN RewriteEngine
RewriteEngine On
RewriteBase /
...Rewrite Rules...
# END RewriteEngine
I need to capture the text inside the 2 apache comments but for the life of me, I'm not able.
Here's what I currently have:
Code:
preg_match('/\# BEGIN RewriteEngine(.*?)\#END RewriteEngine/',$content,$match)
Where content is the string above.
I've tried a number of different variations but I think the # (pound sign) is what's giving me grief.
Any help would be appreciated.
Thanks