Possible future improvement here - how about:

notes.foo~/regexp/