What is Nostr?
Kalamata Hari /
npub1d58…wmvf
2025-01-14 20:45:32
in reply to nevent1q…cm6r

Kalamata Hari on Nostr: If you tell a regex engine to find all matches, they normally don't overlap; i.e. ...

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.)
Author Public Key
npub1d58c27jepmfanyu9cvvjghw2uu0auj2xf8g3lapswf590hg4q8ps9rwmvf