Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
^[^.]+$|\.(?!(go)$)([^.]+$)|^[\S]+[.]$
/

Description

match all names except those with '.go' extension

Submitted by Ashish Gaurav - 9 years ago