Thread Rating:
  • 338 Vote(s) - 2.9 Average
  • 1
  • 2
  • 3
  • 4
  • 5
文字列の中身が数字かどうか
10-17-2011, 06:04 PM, (This post was last modified: 10-17-2011, 06:07 PM by hokada.)
#3
RE: 文字列の中身が数字かどうか
こんなんでどうですか?

Code:
{define-proc public {dou? str:String}:bool
    {return {regexp-match? "^(-?)([1-9][0-9]*)?[0-9](\\.[0-9]*[1-9])?$", {str.trim-clone}}}
}


Messages In This Thread
RE: 文字列の中身が数字かどうか - by hokada - 10-17-2011, 06:04 PM
Forum Jump:


Users browsing this thread:
1 Guest(s)

MyBB SQL Error

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1017 - Can't find file: 'mybb_threadviews' (errno: 2)
Query:
INSERT INTO mybb_threadviews (tid) VALUES('307')