Regular Expressions 101

Library entries

Functions, macros and protocols

Vote

1

Regular Expression
javascript

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

Description

Loading markdown...
Submitted by anonymous - 5 years ago