RegExp Flashcards

1
Q

exec()

A

Tests for a match in a string. Returns the first match

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

test()

A

Tests for a match in a string. Returns true or false

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

toString()

A

Returns the string value of the regular expression

How well did you know this?
1
Not at all
2
3
4
5
Perfectly