Thanks for your reply, but m,y concern is that the $content is not having the contents in proper format due to which the regex also will not work.
Since, the source code are having asp, javascript syntax.
Please try to run this program and let me know if you're able to produce the output.