The $key should be within the "arguments" hash, and thus the original regexp should be correct (and somewhat more precise). Or are you seeing issues here? (Same goes for line line 161.)