✅ – venus – 12-02 Oct 9
Looking for possible regex solution, since I still suck at it. The goal of the regex is to validate if string fits the format.
First should be random length string, then comes colon (
Examples:
First should be random length string, then comes colon (
:) and the last is one of two options: desc or asc. someString:desc|ascExamples:
firstName:desc, lastName:asc