regexp - form validation
Posted: Sat Aug 30, 2014 12:12 am
hello
i am using the bootstrap form validator for bootstrap.
i am having trouble understanding regexp
regexp: /^[a-z\s]+$/i,
this code will only allow the field to consist of alphabetical characters and spaces only.
can somebody break down each thing in there for me and separate what is what so i can learn how to change the variations and put new ones together. i tried googling regexp javascript and there is some information but its still also very confusing.
i am new to javascript.
thank you
i am using the bootstrap form validator for bootstrap.
i am having trouble understanding regexp
regexp: /^[a-z\s]+$/i,
this code will only allow the field to consist of alphabetical characters and spaces only.
can somebody break down each thing in there for me and separate what is what so i can learn how to change the variations and put new ones together. i tried googling regexp javascript and there is some information but its still also very confusing.
i am new to javascript.
thank you