To validate minimum length of an input while using Abide in Foundation Framework. Use the following regular expression “(.){8,}” Where 8 is the number of minimum characters that should be present.
The use of this expression is further explained through the example below. The aim of validation in the example is to have password of minimum 8 characters:
$(function(){ $(document).foundation({ abide: { patterns: { password: /^(.){8,}$/ } } }); });