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搜尋一個十六進位數字字符的詳細內容。更多資訊請關注PHP中文網其他相關文章!