cabennett85/gittest — Issue #708: YouTube URL parsing doesn't always work
Author: cabennett85
Created: 2012-03-02 00:10:45+00:00
State: open

the parsing function is too restrictive:

it requires 'www.youtube.com' rather than just 'youtube.com'

and it requires that no other query parameters exist.

also, the implementation should use PHP's parse_url and parse_str functions rather then preg_match to make the code more robust and much easier to maintain/expand upon.