Match UTF-8 characters
1 2 var string = 'abcde ąbćdę'; 3 4 // this wont find anythin 5 string.match( /^[a-z]*$/i ); 6 7 // and this one will work fine :) 8 string.match( /^[a-z\u00A1-\uFFFF]*$/i );
12878 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
1 2 var string = 'abcde ąbćdę'; 3 4 // this wont find anythin 5 string.match( /^[a-z]*$/i ); 6 7 // and this one will work fine :) 8 string.match( /^[a-z\u00A1-\uFFFF]*$/i );