regular expression breaking on new line

Posted by shyam on Stack Overflow See other posts from Stack Overflow or by shyam
Published on 2010-05-26T15:19:28Z Indexed on 2010/05/26 15:21 UTC
Read the original article Hit count: 137

Filed under:
|
|

I'm trying to use a regular expression as below:

preg_match_all('|<table.*</table>|',$html,$matches, PREG_SET_ORDER);

But this is not working, and I think the problem is the new line inside the string $html.
Could someone tell me a work around?

© Stack Overflow or respective owner

Related posts about php

Related posts about regex