Join GitHub today
switch to [integer(), binary()] format for correct sorting in couchdb. #8
No, you won't start from scratch, this regexp matches the old and new format (I verified). I'll explain the regexp;
the expression is anchored at the end, it then ignores runs of quotation marks and right brackets, and then greedily captures a run of chars permitted in base64 with url encoding.
Update sequences come in as either "1-foo", or "[1,"foo"]", so this expression matches both.