Regular Expressions 101

Community Patterns

OpenSubtitles api finds year

0

Regular Expression
PCRE2 (PHP >=7.3)

/
\"year\"\:(\d{4})\,
/

Description

this regex finds the first year in the json file returned by opensubtitles api

Submitted by Andrea Canton - 2 years ago