Re: [PHP] Php and regex help or advice

2009-06-17 Thread Martin Scotta
HTML usually change very often. Especially properties. A link can change from: Home to: Home So, your regex must avoid using the properties to match elements So, I think this should be a better expresion preg_match_all( '#]*>]*>(.+)(.+)(.+)Critical Violations Found:#imsU', $html, // <-- y

[PHP] Php and regex help or advice

2009-06-17 Thread Miller, Terion
Hi Everyone, Ok, so I've been plunged further into using php by being tasked to use it with regex (yes tylenol extra strength needed please) So far I have my code that grabs a full block of text by paragraphs, now I have to somehow write a snippet that goes inside this block and pulls out each lin