Validate link / url
-
Will adding a regular expression under advanced settings / text validation – such as this one – do the trick / is there a better way (the file upload clearly has to validate the location but that seems to be hidden in code I can’t really do much with
^(http(?:s)?\:\/\/[a-zA-Z0-9\-]+(?:\.[a-zA-Z0-9\-]+)*\.[a-zA-Z]{2,6}(?:\/?|(?:\/[\w\-]+)*)(?:\/?|\/\w+\.[a-zA-Z]{2,4}(?:\?[\w]+\=[\w\-]+)?)?(?:\&[\w]+\=[\w\-]+)*)$
If this expression isn’t correct, please let me know – what I am trying to do is create a form that allows guests to post links / excerpts) to articles – and there seems to be no decent plugins (free or paid) that can do it … Recommended Links comes close but doesn’t actually work) so I am creating my own)
suggestion: link validation seems like something not too unusual, so maybe you could add it to an upcoming release as well
https://www.ads-software.com/plugins/wordpress-form-manager/
- The topic ‘Validate link / url’ is closed to new replies.