I want to define a perl regex that will satisfy below conditions
- Minimum length is 8 and maximum is 24. - (^[\w!#+,-./:=@]{8,24}$)
Same character can not appear consecutively 8 or more times - ([\w!#+,-./:=@])\1{7}
First character can not be special one - ^[^a-zA-Z0-9]+
Character allowed - \w!#+,-./:=@
I am able to achieve this separately, but how to combine all these 3 regex .
Thanks in advance.