469,915 Members | 2,634 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,915 developers. It's quick & easy.

Is there a regex to check filename consist any non english characters?

Is there a regex to check if a filename consists of any non English characters like chinese characters?
Jan 27 '11 #1
1 2180
mrhoo
428 256MB
if(!/^[a-zA-Z]+(\.[a-zA-z]+)?$/.test(filename))
alert('Non English-Alpha characters in' +filename)
Feb 5 '11 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Mark Stralka | last post: by
3 posts views Thread by TeekUS | last post: by
reply views Thread by Johan | last post: by
2 posts views Thread by Yuriy Galanter | last post: by
1 post views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.