Regular Expressions 101

Community Patterns

match all non golang files

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