fork download
  1. <?php
  2.  
  3. // your code goes here
  4. $str = 'https://i...content-available-to-author-only...e.com/MXKYla';
  5. $res = parse_url($str, 1);
  6. var_dump($res);
  7.  
  8. $x = preg_replace("/[^a-z]/", '', $res);
Success #stdin #stdout 0.02s 25904KB
stdin
Standard input is empty
stdout
string(10) "ideone.com"
string(9) "ideonecom"