• d_k_bo@feddit.de
    link
    fedilink
    arrow-up
    46
    ·
    11 months ago

    I recommend using https://regex101.com/

    It explains all parts of your regex and highlights all matches in your example text. I usually add a comment to a regex101 playground if I use a regex in code.

      • doostein@beehaw.org
        link
        fedilink
        arrow-up
        5
        ·
        11 months ago

        I disagree. I found it to be incredibly useful when I knew what regex was and that I needed it, but I couldn’t piece together a single string with it.