in reply to Re: Weirdness (duplicated data) while building result during parsing using regex
in thread Weirdness (duplicated data) while building result during parsing using regex

Thanks for the suggestion, I indeed forgot to try "print"-debugging at every step. Apparently there's a backtracking involved in the case of [attr() eq 1] but not in the case of [attr()=1]. I should've been suspicious of backtracking whenever some kind of "duplication" happens. Will debug this further.