in reply to arithmetic in a regex ?

Actually, the better question we haven't asked is: "Why?". Maybe a regex is not the best way to solve the problem, whatever it is. If we know why we may be able to offer a better solution.

Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond

Replies are listed 'Best First'.
Re^2: arithmetic in a regex ?
by Anonymous Monk on Nov 13, 2023 at 10:01 UTC

    I try to combine a coding in a two dimensional room (x,y). Explaining all the details would not help here. If a simple modification in the search string would be possible, I guess the problem could be solved quite elegant (like the e modifier). But I am not aware if this is possible. So i generated a simplified question. How to write a function, solving this is clear for me. But as usual, I try to solve it elegant and also learn something new.

    Thanks ALL for your help and time !!