skip to main
|
skip to sidebar
yuweijun'blog
Monday, September 24, 2007
Javascript 检测中文字符集的正则表达式
// 校验中文字符
alert(/[\u4E00-\u9FA5]+/.test('中文'));
No comments :
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments ( Atom )
About Me
俞 伟军
View my complete profile
Blog Archive
►
2011
( 19 )
►
December
( 1 )
►
July
( 9 )
►
May
( 1 )
►
April
( 3 )
►
January
( 5 )
►
2010
( 41 )
►
December
( 3 )
►
November
( 3 )
►
October
( 6 )
►
September
( 1 )
►
August
( 2 )
►
July
( 6 )
►
June
( 3 )
►
May
( 9 )
►
April
( 1 )
►
March
( 5 )
►
February
( 1 )
►
January
( 1 )
►
2009
( 55 )
►
December
( 5 )
►
November
( 2 )
►
October
( 1 )
►
September
( 2 )
►
August
( 6 )
►
July
( 9 )
►
May
( 4 )
►
April
( 5 )
►
March
( 8 )
►
February
( 6 )
►
January
( 7 )
►
2008
( 260 )
►
December
( 22 )
►
November
( 13 )
►
October
( 36 )
►
September
( 4 )
►
August
( 31 )
►
July
( 34 )
►
June
( 10 )
►
May
( 9 )
►
April
( 21 )
►
March
( 22 )
►
February
( 23 )
►
January
( 35 )
▼
2007
( 346 )
►
December
( 16 )
►
November
( 12 )
►
October
( 17 )
▼
September
( 31 )
[1129]MySQL::Error: Unblock with 'mysqladmin flush...
动态增加Apache2.2的Module
[1062]MySQL::Error: Duplicate entry '0' for key 4'...
sniffer帮助理解子网掩码、网关与ARP协议的作用
[learning Python] built-in objects preview
Perl内置数据类型
Rails migration plugins from Mr.err
Javascript 检测中文字符集的正则表达式
网上看到的一个Ruby风格的JS源码
MySQL::ERROR Client does not support authenticatio...
Perl中对@array和%hash的排序
.(period) 在Javascript/Ruby/Perl/PHP中的区别
关于Shell中的模式(glob)与正则表达式(Regular Expression)
[1071]Mysql::Error: Specified key was too long; ma...
learning Perl's subroutine
The Elements of JavaScript Style (Part One)
The Elements of JavaScript Style (Part Two)
Mysql Query Optimization
Optimizing your MySQL Application
rcov: code coverage for Ruby and Rails rcov plugin
Rspec and Rspec::Rails install and usage
ActiveRecord style Javascript REST
protocol css
speed optimization for javascript innerHTML
ActiveRecord find_or_create methods
no such file to load -- readline (LoadError)
Integrated mongrel handler with rails app
override rescue_ation example
delete .svn folder of work copy
Rails ActionMailer send mail using GMail
Net::SMTP for Gmail
►
August
( 50 )
►
July
( 28 )
►
June
( 24 )
►
May
( 38 )
►
April
( 53 )
►
March
( 48 )
►
February
( 29 )
►
2006
( 1 )
►
November
( 1 )
No comments :
Post a Comment