Toot

Written by Füsilier Breitlinger on 2025-01-14 at 20:15

@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

Mentions

=> View RobertoArchimboldi@kolektiva.social profile

Tags

Proxy Information
Original URL
gemini://mastogem.picasoft.net/toot/113828543853419224
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
228.171431 milliseconds
Gemini-to-HTML Time
0.511186 milliseconds

This content has been proxied by September (ba2dc).