Skip to content

Instantly share code, notes, and snippets.

@walesmd
Created February 25, 2010 17:22
Show Gist options
  • Select an option

  • Save walesmd/314757 to your computer and use it in GitHub Desktop.

Select an option

Save walesmd/314757 to your computer and use it in GitHub Desktop.
<?php
$this->form_validation->set_rules('due_date', 'due date', 'trim|required|matches_pattern[##-##-####]');
$this->form_validation->set_rules('phone_number', 'phone number', 'trim|required|matches_pattern[(###) ###-####]');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment