Regular Expressions 101

Community Patterns

IMDB Name Extractor

1

Regular Expression
PCRE (PHP <7.3)

/
([A-z \-]*)(?:,(( [A-z\-\.]*){0,3}(?:\(I*\))?))(.*)\s(\(.*\))\s*(\[.*\])?
/

Description

This can be used with the IMDB Plain Text Files to Extract Names of Actors and Actresses. Originally created for use in an NLP Project for EECS 337

Submitted by Rene Romo - 8 years ago