๐ฐusing regex
๐ง under construction
Last updated
Was this helpful?
๐ง under construction
Last updated
Was this helpful?
Was this helpful?
JS โฉ value โฉ object โฉ regex โฉ using regex
Regular expressions are used
with str.match()
, str.replace()
, str.search()
, str.split()
.
when using str.matchAll(regex), the regex
must have the global (g
) flag set, or a TypeError
is thrownโ
replaces the matched substring with a replacement substring.
replaces the matched substrings with a replacement substring.
break a string into an array of substrings.