[Django]-Setting regex pattern for mongoengine 0.9.0 StringField

3๐Ÿ‘

โœ…

^(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[@#$%^&+=]).{8,25}$

You can try this.Each condition is added using lookahead.Add more special characters if you want.

See demo.

๐Ÿ‘คvks

Leave a comment