On the editors, you can search/highlight with RegEx (Regular Expressions) however, the matches cannot be iterated, and you cannot replace them. The old editor allowed this (as far as I remember), as well as using the captured groups as replacement ( /(\d+)\.(.+)?/gm can be replaced with $1 - $2 to change the matches 1.Test to 1 - Test).

  • perchance@lemmy.worldM
    link
    fedilink
    English
    arrow-up
    2
    ·
    25 days ago

    Thanks for the heads up! I’m trying to get syntax highlighting for Perchance code working with CodeMirror 6, and if I do then I’ll need to completely replace the search stuff. So I’ll hold out on fixing this for now - but please ping again if I’ve not done this in a few weeks.