0

when I observed the result of the following regular expression:

"1234".match(/../g)

I got the following result :
Array [ "12", "34" ]

why is it not rather all subarrays ? :
Àrray["12", "23", "34"]

what is the precise explanation of the interpretation of a sequence of dots ?

oceanGermanique
  • 336
  • 3
  • 16

0 Answers0