Community Patterns

Community Library Entry

0

Regular Expression
Created·2016-10-04 01:22
Flavor·Python

r"
(?<=(?:[?&]))foo(?:=([^&#]+))?\b
"
g
Open regex in editor

Description

A solution for capture set/unset/catch a value of param query of URLs.

Here is a example code that applies this pattern in JS, but JS doesn't have support to lookbehind.

Submitted by Rafael Laurindo