But if you insist on regex, it would look like:
$input = 'http://www.example.com/video/?episodeID=8fdd0700006144d2ebe1318860b1fab3';
$res = preg_match('/episodeID=([^&]*)/',$input,$matches);
$episodeID = $matches[1]
This regex means:
- find text: episodeID=
- next find string after it, that doesn't contain &, or untill end of string. I've chosen & because there could be next GET varibles in the url.
- return what is parenthesized ($matches[0] contains the whole string)