Regular Expressions 101

Community Patterns

python 3 executable regex

1

Regular Expression
PCRE2 (PHP >=7.3)

/
^python(3?(\.\d)?m?)?$
/
gm

Description

give then names of various executables filter out ones that run python3+

Submitted by anonymous - 3 years ago