im trying to get everything between:
<table class="tblLayout">...</table>
so ive tried:
preg_match_all("/<table class=\"tblLayout\">(.*)</table>/",$html,$matches);
and i get an unknown modifier "t" on that line
:mad:
try:
preg_match_all('/<table class="tableLaout">.*<\/table>/i', $html, $matches);
no errors now but also no results
the html im bringing in is your typical coding mess from the internet... full of line breaks and other such junk... i tried adding the "s" and "m" modifiers but to no avail did they work
also that html posted to match has other stuff all around it (not sure if that matters)
thanks for the help so far stolz
i forgot the () around the .*, if you don't have that, you aren't asking to get anything in the callback for \1
i is case insensitive, you may need other modifiers like you stated for line breaks as well obviously
i'm not sure what you mean by: the html posted to match statement
stolzyboy wrote:i forgot the () around the .*, if you don't have that, you aren't asking to get anything in the callback for \1 i is case insensitive, you may need other modifiers like you stated for line breaks as well obviously i'm not sure what you mean by: the html posted to match statement
i just mean that the string i posted to match in my first post wasnt the entire htmlof the document... its just a snippet of the entire page
so i added the () and all i get is two empty arrays
but you only need to find what's inbetween those opening and closing tags specifically, correct?
you should hope for nogdog to stop by this thread, he's really good with regex
got it.. there was a typo in your code
you had: <table class="tableLaout"> it needed to be: <table class="tblLayout">
thanks for the help... im making headway now 🙂
oops, sorry about that!
its all good... whats the point of coding/learning if all I did was copy paste all the time
i managed to get the rest of the script coded and working perfectly... thanks again for all your help