how can i extract text between <body> and </body> using preg_match ? note: <body> maybe have another strings and spaces inside </body> maybe have another strings and spaces inside
The above ones won't work if the <body> tag has any attributes. http://forums.digitalpoint.com/showthread.php?t=1560812
They are Pattern Modifiers i-match both upper and lower case letters. m-content can be multiline s-matches all characters, including newlines. U-inverts the "greediness" of the quantifiers so that they are not greedy by default