How to write this regex in PHP?
- by user198729
$url = "http://google.com1215http://132.239.7.64:8082/jsp/wej29/en/Vm.jspHUAWEI";
preg_match('/http:\/\/.*?\.jsp/', $url, $match);
I want to retrieve http://132.239.7.64:8082/jsp/wej29/en/Vm.jsp from $url,but the above returns more than I want: http://google.com1215http://132.239.7.64:8082/jsp/wej29/en/Vm.jsp
How to do it properly?