Looking for regular expression to use in a cloudformation script with below rules:
- Must be only printable ASCII characters.
- Must be at least 16 characters and no more than 128 characters in length.
Cannot contain any of the following characters: '/', '"', or '@'.
"AllowedPattern": "[0-9a-zA-Z\#\$\%\&\'\(\)\*\+\,\-\.\/\:\;\<\=\>\?\[\\\]\^\_\{\|\}\~].{16,128}$",
Tried above but JSON doesnt seem to accept it. I believe some issue with \, as this "AllowedPattern": "[0-9a-zA-Z].{16,128}$", seems to work. Any help ?