@RobertoArchimboldi If you tell a regex engine to find all matches, they normally don't overlap; i.e. each search takes off where the previous match stopped. So for a pattern of [0-9]* against the string 30-45 I'd expect four matches: The two digits at offset 0 (30 at the beginning of the string), the zero digits at offset 2 (, just before -), the two digits at offset 3 (45, after -), and the zero digits at offset 5 ( at the end of the string).
(None of the matches can contain - because [0-9] only matches digits.)
=> More informations about this toot | View the thread | More toots from barubary@infosec.exchange
=> View RobertoArchimboldi@kolektiva.social profile
text/gemini
This content has been proxied by September (ba2dc).