You are here

constant SCALD_YOUTUBE_WEB_REGEXP in Scald YouTube 7

1 use of SCALD_YOUTUBE_WEB_REGEXP
scald_youtube_parse_id in ./scald_youtube.module
Parse a YouTube ID and check validity.

File

./scald_youtube.module, line 11
Defines a YouTube provider for Scald.

Code

define('SCALD_YOUTUBE_WEB_REGEXP', '/(?:https?:\\/\\/)?(?:www\\.)?(?:youtu\\.be\\/|youtube\\.com\\/(?:embed\\/|v\\/|watch\\?v=|watch\\?.+(?:&|&);v=))((?:\\w|-|_){11})(?:(?:\\?|&|&)index=((?:\\d){1,3}))?(?:(?:\\?|&|&)list=((?:\\w|-|_){12,}))?(?:\\S+)?/');