javascript regex basics 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/;