您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

使用JavaScript正则表达式查找非空格字符

2025/1/8 2:49:02发布14次查看
要查找非空白字符,请使用以下代码 −
\s
exampleyou can try to run the following code to find non-whitespace character −
<html> <head> <title>javascript regular expression</title> </head> <body> <script> var mystr = "100% responsive!"; var reg = /\s/g; var match = mystr.match(reg); document.write(match); </script> </body></html>
以上就是使用javascript正则表达式查找非空格字符的详细内容。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product