Toot

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

@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

Mentions

=> View RobertoArchimboldi@kolektiva.social profile

Tags

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

This content has been proxied by September (ba2dc).