[^\\\/] should just be [^\/], escaping inside // is different