To find a vertical tab character with JavaScript Regular Expression, use the following −
\v
Example
You can try to run the following code to find a vertical tab character. 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>