to find a hexadecimal number character with javascript regular expression, use the following. add the hexadecimal number here −
\xdd
示例您可以尝试运行以下代码来查找十六进制字符。它搜索十六进制数53,即s −
<html> <head> <title>javascript regular expression</title> </head> <body> <script> var mystr = "secure and responsive!"; var reg = /\x53/g; var match = mystr.match(reg); document.write(match); </script> </body></html>
以上就是使用javascript的regexp搜索一个十六进制数字字符的详细内容。