Jump to content

Preg Matchs


Xero

Recommended Posts

Hello.I'm using preg_match function here and I have one problem.If I have this input..

<Comments: This is anexample.>

.. (my preg_match function is

preg_match("@<Comments:(.*?)>@i", $line, $commentMatch)

), the match fails because the input is not in the same line. How can I make my preg_match to continue trough lines?I hope I was clear on my question. If you don't understand it, let me know :) Thanks.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...