[ create a new paste ] login | about

Link: http://codepad.org/hyNRiZWG    [ raw code | output | fork ]

PHP, pasted on Oct 4:
1
2
3
4
5
6
7
<?php

$source = "javascript:window.open('http://www.google.com')";

sscanf($source, "javascript:window.open('%[^']", $link);

echo $link;


Output:
1
http://www.google.com


Create a new paste based on this one


Comments: