Community Patterns

Community Library Entry

1

Regular Expression
Created·2015-08-03 11:38
Flavor·ECMAScript (JavaScript)

/
((?:\.[a-f0-9]{2}){2})
/
ig
Open regex in editor

Description

Match Wikipedia anchor dot-instead-of-percent encoding string.replace(/((?:.[a-f0-9]{2}){2})/ig, function(match) { return decodeURIComponent(match.replace(/./g, '%')) });

Submitted by anonymous