Gossamer Forum
Home : Products : DBMan : Installation :

Re: Putting ' - ' in fields?

Quote Reply
Re: Putting ' - ' in fields? In reply to
Here is an example from the FAQ noted below regarding using phone numbers.

If you wanted to your phone field to accept:

1-555-555-5555 or 555-555-5555 or 555-5555

Use: '\d{0,1}-?\d{0,3}-?\d{3}-\d{4}$'

Example:

'Telephone' => [10,'alpha',20,15,1,'','\d{0,1}-?\d{0,3}-?\d{3}-\d{4}$'],

If this does not provide the answer, please check the FAQ under the section "Syntax"

Unoffical DBMan FAQ
http://webmagic.hypermart.net/dbman/
Subject Author Views Date
Thread Putting ' - ' in fields? mikey101 3991 Feb 1, 2001, 9:41 AM
Thread Re: Putting ' - ' in fields?
Stealth 3957 Feb 1, 2001, 11:25 AM
Thread Re: Putting ' - ' in fields?
mikey101 3904 Feb 1, 2001, 3:31 PM
Thread Re: Putting ' - ' in fields?
Stealth 3913 Feb 1, 2001, 3:33 PM
Thread Re: Putting ' - ' in fields?
mikey101 3913 Feb 1, 2001, 4:18 PM
Thread Re: Putting ' - ' in fields?
mikey101 3880 Feb 2, 2001, 12:54 PM
Thread Re: Putting ' - ' in fields?
LoisC 3904 Feb 2, 2001, 7:28 PM
Thread Re: Putting ' - ' in fields?
mikey101 3841 Feb 4, 2001, 4:35 AM
Post Re: Putting ' - ' in fields?
mikey101 3804 Feb 9, 2001, 5:32 AM