Match() function explanation? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Match() function explanation?

Match ()

11th Jan 2019, 2:24 AM
Edward Jackson Jr
Edward Jackson Jr - avatar
2 Answers
+ 8
The string.match() is an inbuilt function in JavaScript which is used to search a string for a match against a any regular expression and if the match will found then this will return the match as an array.
11th Jan 2019, 2:47 AM
JTLZ
+ 1
As a supplement to JTLZ answer, you can learn about regular expressions from Danijel's tutorials : https://code.sololearn.com/Wx88zgigVueq/?ref=app
11th Jan 2019, 3:14 AM
Gordon
Gordon - avatar