Hi Mark. Your no_url_regex function is not actually returning true or false, it’s returning “(http|https)”. In that function you will need to implement some sort of checking to see if a link was submitted.
This looks like it should be close, but it appears that the code you have above would currently flag values that don’t match. If you want to flag values that do match your pattern (that being returend by your no_url_regex function), then the if statement should read…
if ( preg_match( $nourl_pattern, $value ) ) {
You’ll probably also want to do an initial check against the field type, so that you’re only applying to text fields. Something like…