@RobertoArchimboldi A regex always finds the leftmost match. Your first regex, [0-9], can match at offset 0 in >335 because means "0 or more of the preceding thing", so it can match all 0 digits before >. On the other hand, [0-9]{1,3} requires at least one digit to match, so the first location where it can succeed is at offset 1, matching all three available 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).