Jump to content

preg_match?


kla0005

Recommended Posts

Hellow guys,

 

I have made a script that can get the html of other pages, but know i want the <body> name..

I can just take <body> because sometimes the pages have f.eks, a onload="" in it or something, so i tryed this:

$body = preg_replace("/\\<body\(.+?)\>/is",'<body \1 >', $code);

 

But that didnt work? What have i done wrong? Please help :(

Link to comment
https://forums.phpfreaks.com/topic/191750-preg_match/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.