so you want to show everything between <a href="b.php"> and </b>, but not show the rest of it? please show me example content of your var $data and what it is meant to look like, Ill try to build something for you. too much line bro. i thik how to make <a\s+href="b.php"> and $ar...