|
|
|
|
|
by MatmaRex
2095 days ago
|
|
.match() only returns the result of one match, rather than all the matches in the string. To do that, you'd need to use .matchAll() (which didn't exist in 2008), or write an awkward do…while loop. Using .replace() looks neater. |
|