Regular Expressions 101

Library entries

Function Declaration / Expression

Vote

3

Regular Expression
javascript

/
function\s*([A-z0-9]+)?\s*\((?:[^)(]+|\((?:[^)(]+|\([^)(]*\))*\))*\)\s*\{(?:[^}{]+|\{(?:[^}{]+|\{[^}{]*\})*\})*\}
/
g

Description

Loading markdown...
Submitted by Ja Superior - 6 years ago