所以我有这个正则表达式 -
const liveEditingRegex = new RegExp('\`{3}example([\s\n\<A-Za-z\>=\"\/]*)\`{3}example', 'g');
和本文
# Box
## HTML block below
<blockquote>
This is an example of a block with react markdown!
</blockquote>
```example
<Box>
<BoxHeader key="one">
<BoxTitle key="two" title="Box Title"/>
</BoxHeader>
<BoxBody>
<Text> This is a BoxBody </Text>
</BoxBody>
<BoxFooter>
<Text> This is a Box Footer </Text>
</BoxFooter>
</Box>
```example
根据https://www.debuggex.com/,事情很好,但是当我执行代码时,我得到了match = null
。
为什么?