Refactored _extractUrls( )