摘要:
Let's image tow cases for the following string: var str = `foo foobar foobaz fooboo` First of all: we know how to capture foobar or fooboo: var regex 阅读全文
posted @ 2016-02-15 02:12
Zhentiw
阅读(164)
评论(0)
推荐(0)
摘要:
We'll capture groups of characters we wish to match, use quantifiers with those groups, and use references to those groups in String.prototype.replace 阅读全文
posted @ 2016-02-15 02:00
Zhentiw
阅读(264)
评论(0)
推荐(0)