31
Consider the following statement containing regular expressions
In order to check if the pattern matches, the statement is
var text = "testing: 1, 2, 3";
var pattern = /d+/g;
Answer & Solution
Answer: Option
D
Solution:
The given pattern is applied on the text given in the paranthesis.