MySQL Forums
Forum List  »  Microsoft SQL Server

Re: IsNumeric() clause in MySQL??
Posted by: Vilhelm Persson
Date: January 07, 2009 05:06AM

Im not that good at regexp but for some reason the version with :digit: dont work as expected.
select 'i' REGEXP '^[\-\+]?[[:digit:]]*\.?[[:digit:]]*$'; returns 1!
The code with '^(-|\\+){0,1}([0-9]+\\.[0-9]*|[0-9]*\\.[0-9]+|[0-9]+)$' works as expected.

Options: ReplyQuote


Subject
Written By
Posted
September 10, 2004 12:08PM
September 16, 2004 10:31PM
November 24, 2008 04:43PM
Re: IsNumeric() clause in MySQL??
January 07, 2009 05:06AM
January 07, 2009 11:34AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.