Regular Expressions 101

Library entries

extract JavaScript function name (corrected for specials)

Vote

1

Regular Expression
javascript

/
^\s*function\s+([a-zA-Z$_][a-zA-Z\d$_]*)\s*\(
/

Description

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