使用 JavaScript RegExp 搜索八进制数字字符。
htmljavascriptprogramming scripts更新于 2024/1/26 13:32:17
要使用 JavaScript 正则表达式查找八进制数字字符,请使用以下命令。在此处添加八进制数字 −
\xxx
您可以尝试运行以下代码来查找八进制数字字符。它搜索八进制数字 123,即 S−
示例
<html>
<head>
<title>JavaScript Regular Expression</title>
</head>
<body>
<script>
var myStr = "Secure and Responsive!";
var reg = /\123/g;
var match = myStr.match(reg);
document.write(match);
</script>
</body>
</html>
输出
S
相关文章
有用资源
html 参考教程 - 该教程包含有关 html 的更多信息:https://www.cainiaomax.com/html/

