https://issues.apache.org/bugzilla/show_bug.cgi?id=51826
--- Comment #4 from K Cassell <[email protected]> --- (In reply to Sebb from comment #3) > I think there are two aspects to this. > > 1) excluding variables from substitution > > This can be done by using multiple UDV elements and disabling the ones that > should not be used. > > 2) limiting matches to certain contexts only. > > This is already supported by the recorder; enable Regex Matching > > Are those features not sufficient? I've been arguing with myself about what the proper behavior of the variable substitution feature should be, and I think I am now agreeing with you. I think my problem is mostly a matter of variable scoping, that is, variables should generally be defined such that they are in scope only where they are needed. In our naive implementation, we had too many variables at a global scope. There is still the problem of substituting the correct variable into the correct place in the recorded text; however, I can't think of a simple, effective algorithm that can determine how to do so. The regex matching isn't ideal, but it does help for the majority of simple cases. I am content to have this proposed enhancement discarded. -- You are receiving this mail because: You are the assignee for the bug.
