If I have this string like this
```
console.log()
```
Hello
or
Hello
```
console.log()
```
or
```console.log()``` Hello
or
Hello ```console.log()```
How do I get just the console.log() string?
---------------------------------------------- Edit ----------------------------------------------
The regex I use is the combination between regex answered by @Himanshu Tanwar with the one suggested by @ASDFGerte
var code = s.match(/```([^`]*)```/)[1]
split()ing on "```".