How to check if string contains Latin characters only?

前端 未结 6 1709
旧巷少年郎
旧巷少年郎 2021-01-30 12:39

How to check if a string contains [a-zA-Z] characters only?

Example:

var str = \'123z56\';
6条回答
提交回复
热议问题