where you can give someone a vouch by tagging them in a specific room and then writing what the vouch is for
I want to write a regex that matches when someone tags someone but doesn't write what the vouch is for
the bot sees discord mentions as <@3242938402492490>
<@3294283028423020348230> aug life <- don't match <@3423424924029042309403> <- match <@2309909923043940240290> au <- match <@2304234284ß284203484> aug influence <- don't match <@23482034394102391223> rem <- match
I found ` <@!*&*[0-9]+>` to match the mention itself, but what I need is match the whole string if and only if 1. there's a mention in the string, 2. the mention is followed up by less then n non-whitespace characters
the number is arbitrary
discord ID's can go from 8 digits all the way to 13 or 14
basically I want to match all strings where there is a mention (contained in <@ and > with a number in between) and the non-whitespace text that is not the mention is less then n (say, 4) characters long
How are you using the regex? Is it only a test (i.e. generating only match/not match), or are you using it to get sub portions of the text and/or perform a replacement on the text?
@mag This regex allows for an unlimited number of ! and & characters after the @, but only both when the order is that any ! are before the &. Is that really what you're wanting? A more typical format would be that there is permitted to be a single ! or a single & character. What exactly are you looking for there?