@qishq-42 said in not sure if this can be done...:
im looking for a way to make this simpler is that possible?
Yes, it’s called programming.
Regex doesn’t have the concept of counting that your desired algorithm requires. You either have to set up the N! conditionals in the regex, or you have to use a tool – like a programming language – that handles counting and other such conditional tasks much more simply than can be done in regular expressions.