Regular Expressions 101

Community Library

Your search did not match anything

Community Library Entry

1

Regular ExpressionOpen Workspace

/
```(?<=```(?=[^`\n]))[^`\n]+
/
gm

Description
Created·2022-06-07 18:23
Type·Match
Flavor·JavaScript

Combat md.replace(regex, "<pre>") and md.replace("```", "</pre>") to replace Markdown codeblocks with HTML ones

Submitted by Rix
Open Workspace