how to get expression object from text in javascript code example
Example 1: js string to regex
const regex = new RegExp('https:\\/\\/\\w*\\.\\w*.*', 'g');
Example 2: regex for strings with specific letters javascript
let re = /ab+c/;
const regex = new RegExp('https:\\/\\/\\w*\\.\\w*.*', 'g');
let re = /ab+c/;