Javascript does not support all ruby regexp anchors