Timeline for Regex to parse horizontal rules in Markdown
Current License: CC BY-SA 4.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 29, 2021 at 21:25 | comment | added | Vogel612 |
Even more optimizable, in case you are using a regex engine that supports backreferences to ^ {0,3}([-_*])[ \t]*(\1[ \t]*){2}$ (21 steps). Dropping the group specification (and instead explicitly repeating the backreference) gets us to 15 steps. Dropping the constraint enforcing exactly three repetitions for the [-_*] yields 219 steps (or 217 respectively), though.
|
|
Jun 29, 2021 at 15:08 | review | First posts | |||
Jun 29, 2021 at 15:29 | |||||
Jun 29, 2021 at 15:03 | history | answered | ChrisW | CC BY-SA 4.0 |