const url = "./index.js mongodb://localhost:27017/docs find betty";
docs
is my database name
const db_name = ?
const url = ?
How do I separate out the database name using regex in one variable, and the url in another?
Any help is highly appreciated.