is it ok to have double ^ or $ in a regexp? like `^^fooo$$`? it works for me with v8, but I don't know about cross-browser compatibility. we should have a test for it.