Jump to content

Preg Matchs


Xero
 Share

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...