This copy is in the form of a web but I do not see the value within the div: /
& lt; Div style = "float: left;" & Gt; Carrara 7h bis no. 76 - 0 Elphono II & lt; / Div & gt; Preg_match ('| & lt; div style = "float: left;" & gt; (. * +) & Lt; / div & gt; | is', $ data, $ cap); Echo "direccion:" $ Cap [1] '& Lt; Br> & # 39; & # 39;
$ data = '& gt; Div style = "float: left;" & gt; CARRERA 7H BIS NO. 76 - 0 Elphono II & lt; / Div & gt; '; Preg_match ('% style = "float: left;" & gt; (. *?) & Lt; \ / div & gt;% si', $ data, $ cap); Echo "direccion:" $ Cap [1] '& Lt; Br> & # 39; & # 39;
So, you were close, but you have not escaped the shutdown of the divi - this was the problem. Capturing posts and group reggues was false - this should work. Finally 'modifier is added - if the new lines are in input ($ data).
updated for regex:
$ regex = "% & # 39; & # 39;
No comments:
Post a Comment