Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Regex for number

Quote Reply
Regex for number
What´s the regex expression to a field have only number?

I´ve put [0-9] but the user still can put the dots . or ,
Quote Reply
Re: [assombracao] Regex for number In reply to
Hi,

You may want to try the regex: ^\d+$

Hope that helps,
Jean
Gossamer Threads, Inc.