• UndercoverUlrikHD@programming.dev
    link
    fedilink
    arrow-up
    4
    ·
    11 months ago

    On the surface level it makes sense since you already wrote the code to extract the numbers based on digits, which will be in the back of your mind. Once you have some time think about though, it’s obvious it’s better to just directly find the first and last “digit” without changing the string.