Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
(?'chemin'(?|(^)|(.*\\)|(.*\/)|(^\/)))(?'fichier'(?'prefix'[a-z0-9_\-]{4})(?'num_photo'[0-9]{1,10})(?'extention'\.[a-z0-9]{3,4}))$
/
i

Description

Extraire les informations du chemin d'une photo.

Submitted by Nicolas - 2 years ago