So I'm trying to preg_match the following regex, but it's giving me a "Delimiter must not be alphanumeric or backslash." I Googled the error, but the solutions were to add the slashes to the beginning and end of the statement. I already have those.
Your regex has valid syntax and does not generate any error when I place it directly into preg_match. However, it does fail to match the video value (group 1) because both dot-stars are lazy and can match nothing, and thus the regex successfully finishes before actually capturing anything. Changing each dot to a "not ampersand" and removing the lazy ? from the stars fixes the problem like so: