Re: Filter text for a code with unique digits
If you can figure out how to extract your code from anywhere within the title, you can then use an expression such as this to make sure it is in the format and length you want:
if(and(not(isInt(substring(triggerBody()['text'], 0, 1))), isInt(substring(triggerBody()['text'], 1, 4)), contains(substring(triggerBody()['text'], 5, 1),'-'), isInt(substring(triggerBody()['text'], 6, 4)), equals(length(triggerBody()['text']), 10)), 'true', 'false')
The above just checks to make sure the first character is not a number, so it could be any valid character. Otherwise, it checks the format you listed.
I have an expression somewhere to check if it is A-Z or a-z, but I cannot remember where 🙂