Percent-encode characters in strings matching a regular expression
Create versions of strings where characters that match a regular expression are percent encoded.
var pctEncode =var encode = ;console; // UTF-8%20in%20your%20URIs%3A%20%E2%9C%93
Given a regular expression, this returns a function that takes a string and
returns a copy with characters that match