Hello! New to SAMMI and absolutely LOVE IT so far. Not sure if it has been asked in the past, but I made a lot of searches and couldn't find anything about it: Regular Expressions.
Regex is a powerful ally in programming when you need to validate a string (URL, phone number, email address, etc.) and it's kind of a shame SAMMI doesn't support them!
For example, I'm trying to make a trigger for a button that would run the button if the URL is valid YouTube Link (it will fetch the title of the video and send it as a chat message on Twitch).
From my current understanding, you can create a text trigger with wildcards, then obtain the value of said wildcards with the Pull Wildcard command, which is great!
But there are SO MANY WAYS for a YouTube URL to be valid (with or without 'https', with or without 'www', whether it's youtube.com or youtu.be, whether there are other parameters in the URL after the video code, and so on).
An idea would be to create a different trigger for each possibility, but there is just too many of them (and there would be no way to get the proper video code value from the URL as a wildcard, since it wouldn't be the same wildcard position depending on which of the triggers got "called").
A regex would totally solve all of this: you write a 1-line rule that includes all of the possibilities and option, enclosing the desired part (video code) so you can use it later as a pull value or whatever, and then it would work with only one trigger, no matter how the link is structured, as long as it's valid.
That's only one of the many uses for a regex, and considering how powerful and amazing SAMMI already is, I'm actually surprised it doesn't supports regular expressions.
So I would very much like to have a regex support in a future update!