Welcome Guest, Not a member yet? Register   Sign In
Extract body using regular expression
#2

[eluser]Seppo[/eluser]
Try this:
Code:
$regex = "@\<body\>(.*?)\</body\>@is";

If I'm not wrong, you have to use "s" flag so . includes the new line character


Messages In This Thread
Extract body using regular expression - by El Forum - 02-11-2008, 03:53 AM
Extract body using regular expression - by El Forum - 02-11-2008, 05:10 AM
Extract body using regular expression - by El Forum - 02-13-2008, 11:27 PM



Theme © iAndrew 2016 - Forum software by © MyBB