Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
(?mis)^\bgeneral( #[0-9])?(.*?)^\s*$
/

Description

This regex can be used to parse the "general", "video" or "audio" stream metadata returned by the mediainfo.dll inform() call.

Submitted by J.T. Taylor - 9 years ago