We are receiving an input parameter value as a pipe-delimited key-value pair, separated with = symbols. For example:
=
\"|User=0101|Name=ImNewUse
If you do decide to use regex, make sure it's block rockin' regex like this:
var result = {}; s.replace(/([^=|]+)=([^|]*)/g, function(noStep3, a, b) { result[a] = b; });