Skip to content

Commit

Permalink
void 0
Browse files Browse the repository at this point in the history
  • Loading branch information
alsotang committed Oct 11, 2014
1 parent 85d258b commit 497e8ca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lesson9/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ var text = multiline.stripIndent(function () {
```js
var match1 = text.match(/^```[\s\S]+?^```/gm);
console.log(match1) // => [ '```\ncode code2 code3```\n```' ]

// 这里有一种很骚的写法,[^] 与 [\s\S] 等价
var match2 = text.match(/^```[^]+?^```/gm)
console.log(match2)
```
完。
Expand Down

0 comments on commit 497e8ca

Please sign in to comment.