Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

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

Description

this regex can be used to parse out general, video and audio sections of the mediainfo.dll library inform() return to be used to create string lists or dictionaries of the container and stream metadata key/value pairs.

Submitted by J.T. Taylor - 9 years ago