Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
def(p|macro|protocol|macrop)? ([a-zA-Z]+)(\([a-zA-Z, ]+\))? do([\s\S]+?)end
/
g

Description

no description available

Submitted by anonymous - 9 years ago