Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

Cant get the right syntaxis for preg_match

Hi,

I want to get what is contained between these comments

<!--content-start-->

<!--content-end-->

so I use pregmatch like this:

preg_match("/<!--content-start-->(.*)<!--content-end-->/i", $rss, $content);

but nothing happens so I guess its the wrong syntax?

Thank you.

Comments