I believe there might be a bug with Stata's regex processor. In particular, the regex search pattern "\$" does not search for literal representations of the dollar sign but rather analyzes "\$" as an anchor. E.g. the command below returns the following
When it should instead return
Code:
disp ustrregexra("\$ asdf", "\$", "dog") $ asdfdog
Code:
dog asdf
Comment