How to create a RegExp

Report a typo

Select all the correct ways to create a RegExp object.

A)

let regex = 'abc+';

B)

let regex = /abc+/;

C)

let regex = new /20\d/;

D)

let regex = new RegExp('202\\d');

E)

let regex = new RegExp(/\w+/, 'g');
Select one or more options from the list
___

Create a free account to access the full topic