Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
(?<=\/blog\/author\/)[^/]+\/?(\d+)?\/?$
/
gm

Description

This regex works on regex101.com, but fails inside browser's console.

Submitted by anonymous - 2 years ago