Post AVyqmqJPSuiWui2gds by nullifidian@qoto.org
 (DIR) More posts by nullifidian@qoto.org
 (DIR) Post #AVypIe729uTER4I5lw by davep@fosstodon.org
       2023-05-24T12:11:17Z
       
       0 likes, 0 repeats
       
       I just got asked if regular expressions match strings, or if strings match regular expressions; and I don’t think I’d realised just how deep a question that is and now I’m starting to question the very nature of really itself.
       
 (DIR) Post #AVypIf5eWWxZT4eVG4 by seanmcbeth@arvr.social
       2023-05-24T12:35:22Z
       
       0 likes, 0 repeats
       
       @davep Does a USB plug match a USB socket, or does a USB socket match a USB plug?Purely from a linguistic standpoint, I'd consider the string to be a "static" thing, a value, and the regex to be the "dynamic" thing, an operator. So I'd say the regex is the agent in the statement and that the regex is the one doing the matching.
       
 (DIR) Post #AVyqmqJPSuiWui2gds by nullifidian@qoto.org
       2023-05-24T12:52:01Z
       
       0 likes, 0 repeats
       
       @seanmcbeth @davep Spoilsport!