JakubHJ
Reactiflux4y ago
6 replies
JakubH

✅ – venus – 08-46 May 24

Hey, I am trying to catch all mdx headings (
## First Heading
,
### Third Heading
, etc.) but only the phrase that comes after
## 
. Could I get some help with regex that can handle it? Thanks.

I've found this one, but sadly doesn't work for my case
^(### |## )(.*)\n

String:
\r\n## First Heading\r\n\r\nLorem Ipsum.\r\n\r\n### Second Heading\r\n\r\nLorem Ipsum Lorem Ipsum.\r\n\r\n### Third Heading\r\n\r\nLorem Ipsum Lorem Ipsum Lorem Ipsum.\r\n
Was this page helpful?