I am looking for age for a regular expression which will return all the page titles, some of them in Asuruntala and other strange There are things that prevent me from finding any results.
Here are some of the regex I've tried
but in them there are no & # 39; s headlines.
Thanks a lot
Edit
Here's the full code
$ data = file_get_contents ("http: // Www.awin1.com/pclick.php?p=116824093&a=79524&m=2694&platform=platform= CS "); $ Theme = $ data; $ Pattern = '# & lt; Title. * & Gt; (. +) & Lt; / Heading & gt; #s'; Preg_match ($ pattern matches $ theme, $); Var_dump (matches $);
Thanks to the link thank you
At the dot match newline, it will work just fine:
For 'new lines for dot matches', you have to postfix regex to PHP with / s
.
preg_match "/<title>(.*?)</title>/s", some text sub-search)
< / Html>
Comments
Post a Comment