How to write this regex in PHP?
        Posted  
        
            by user198729
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by user198729
        
        
        
        Published on 2010-04-23T11:06:52Z
        Indexed on 
            2010/04/23
            11:13 UTC
        
        
        Read the original article
        Hit count: 266
        
$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?
© Stack Overflow or respective owner