Home >Web Front-end >HTML Tutorial >Search for vertical tab characters using JavaScript's RegExp
To find the vertical tab character using JavaScript regular expression, please use the following code:
\v
You can try running the following Code to find vertical tab characters. It returns the position where the vertical tab (\v) character is found -
<html> <head> <title>JavaScript Regular Expression</title> </head> <body> <script> var myStr = "Secure and \v Responsive!"; var reg = /\v/; var match = myStr.search(reg); document.write(match); </script> </body> </html>
The above is the detailed content of Search for vertical tab characters using JavaScript's RegExp. For more information, please follow other related articles on the PHP Chinese website!