Skip to content

Instantly share code, notes, and snippets.

@whatnickcodes
Created December 5, 2012 22:23
alphadash
required|alpha_dash|callback__has_dashes
public function _has_dashes($post)
{
if (preg_match('-', $post))
{
$this->form_validation->set_message('_has_dashes', 'No dashes');
return FALSE;
}
else
{
return TRUE;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment