Build, test, and debug regular expressions
This regex validates that a string contains at least one uppercase letter, one lowercase letter, one digit, and one special character from the set !@#$%^&*, while keeping the total length between 8 and 24 characters. It is commonly used for enforcing strong password policies in web forms or authentication systems. The lookaheads ensure each required character class appears somewhere in the string, and the final quantifier limits the overall length.