fork download
  1. <?php
  2.  
  3. $str = 'window.location = "http://w...content-available-to-author-only...e.com";
  4. window.location.href = "http://w...content-available-to-author-only...e.com";
  5. window.location.assign("http://w...content-available-to-author-only...e.com");
  6. window.location.replace("http://w...content-available-to-author-only...e.com");
  7. self.location = "http://w...content-available-to-author-only...e.com";
  8. top.location = "http://w...content-available-to-author-only...e.com";
  9. ';
  10. preg_match_all('~window\.location.*~', $str,$result);
  11. print_r($result);
Success #stdin #stdout 0s 52488KB
stdin
Standard input is empty
stdout
Array
(
    [0] => Array
        (
            [0] => window.location = "http://w...content-available-to-author-only...e.com";
            [1] => window.location.href = "http://w...content-available-to-author-only...e.com";
            [2] => window.location.assign("http://w...content-available-to-author-only...e.com");
            [3] => window.location.replace("http://w...content-available-to-author-only...e.com");
        )

)