Regular Expressions 101

Community Patterns

1

Password

ECMAScript (JavaScript)
aA1@
Submitted by anonymous - 8 years ago

Parse string like: "[!type|name] http://some.url/to.file"

2

Regular Expression
ECMAScript (JavaScript)

/
(\s*\[+?\s*(\!?)\s*([a-z]*)\s*\|?\s*([a-z0-9\.\-_]*)\s*\]+?)?\s*([^\s]+)\s*
/
ig

Description

Loading markdown...
Submitted by Max Chuhryaev - 8 years ago