Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

获取代码段文件的代码块 #4

Open
BiYuqi opened this issue Jan 20, 2019 · 0 comments
Open

获取代码段文件的代码块 #4

BiYuqi opened this issue Jan 20, 2019 · 0 comments

Comments

@BiYuqi
Copy link
Owner

BiYuqi commented Jan 20, 2019

获取代码段文件的代码块

正则:

/```[\S\s]*?```/g

解释:

``` 意思是匹配该符号
[\S\s]* 意思是匹配所有内容
? 意思是非贪婪模式匹配,否则将会匹配所有片段

在线预览

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant