Community Patterns

Community Library Entry

2

Regular Expression
Created·2015-05-11 04:37
Flavor·PCRE (Legacy)

/
([a-z A-Z 0-9 À-ÿ]*).(?i)(\bpb\b|\bpbi\b)
/
Open regex in editor

Description

You would like to scan a folder containing many files (Example : *.pb, *.pbi, *.pbp and *.pbf) and you are interested only by two type of files (example : *.pb and *.pbi). This expression will match only if extension match (in this case *.pb and *.pbi) otherwise no reaction. Feel free to change file extensions has need.

Submitted by StarBootics