URL Validation with KnockoutJS
16 Jul 2014
I recently found myself having to implement URL validation in KnockoutJS. Here’s how I went about doing that:
1) Add Knockout-Validation plugin to your project.
2) Create a custom rule to validate URLs based on the RegEx by Diego Perini found here:
3) You are all set. You can now use it either one of these ways: