Community Patterns

Community Library Entry

0

Regular Expression
Created·2017-04-18 18:38
Flavor·ECMAScript (JavaScript)

/
^((?:[^:@\/#\?]+)(?:\:(?:[^:@\/#\?]*))?@){1}
/
gmi
Open regex in editor

Description

Awesome basic auth parser! Doesn't work if there is a protocol string.

Submitted by anonymous