Regular Expressions 101

Community Patterns

There does not seem to be anything here

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
(^namespace{1}.*\W\n?{)
/
gm

Description

Simple regex to find the Namespace line in a C# class.

Submitted by Erik Bartlow - 10 years ago