Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $url = 'http://www.acs.utah.edu/uofu/stu/scheduling/?cmd=index&classtype=g&term=1158';
- $data = file_get_contents($url);
- //$regex = "/class=\"href=\"(.*)\"/";
- $regex = "/<a class=\"schedlinks\" href=\"(.*)\">/";
- //$regex = "/<a\s*(.*)\>(.*)<\/a>/";
- preg_match($regex,$data,$match);
- var_dump($match);
- echo $match[1];
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement