\v matches one vertical tab character (VT, U+000B). It is a rare legacy control character—useful when cleaning old data, not for everyday text formatting.
Treat vertical tab as a precise control character—not as a newline or horizontal tab.
Insert VT in demos with "\v" or "\u000B".
Use /\v/ with test, split, or replace.
Add the g flag when every vertical tab must be removed.
Prefer \v over \s when other whitespace should stay.
Piece
Required?
Role
\v in the pattern
Yes
Match one vertical tab
String escape
For demos
"\v" inserts VT into a string
g flag
Optional
Find or replace every VT
vs \t / \n
—
Different code points — do not mix them up
Pseudocode
Pseudocode
pattern has "\v"
read next character ch from the string
if ch.codePoint === 11: // vertical tab (U+000B)
accept match
else:
fail this path
common actions:
test(str) → true if any VT exists
replace(/\v/g, "") → strip every VT
split(/\v/) → parts between VT delimiters
Reference
Cheat Sheet
Keep these facts handy when cleaning control characters.
Topic
Detail
Character
Vertical tab — U+000B (code point 11)
Detect
/\v/.test(str)
Remove
str.replace(/\v/g, "")
Whitespace?
Yes — included in \s
Not the same as
\t (HT) · \n (LF) · \f (FF)
Also written
\u000B · \x0B
Standard
ES3+ (universal)
Try it
Live Preview
Run common \v operations on sample strings that contain a vertical tab.
Browser demo of the RegExp \v vertical tab escape — same ideas as the examples below.
Result
text = "hello"
/\v/.test(text)
→ false
/* no vertical tab present */
Code
JavaScript Examples
Short, copy-ready snippets. Open DevTools Console, or use Try It Yourself for a live editor.
Example 1 — Detect a Vertical Tab
Return true only when a real VT character is present.
One line:\v finds the vertical tab — detect it, do not confuse it with \t/\n, and strip it when cleaning legacy text.
Frequently Asked Questions
\v matches the vertical tab character (VT, Unicode U+000B, ASCII 11). It is a legacy control character that advances to the next vertical tab stop.
No. \t is horizontal tab (U+0009), \n is line feed (U+000A), and \v is vertical tab (U+000B). Each is a distinct single character.
Yes. In JavaScript, the \s whitespace class includes vertical tab along with space, horizontal tab, newline, carriage return, and form feed.
Very rare. Everyday text uses spaces, horizontal tabs, and newlines. You may see \v in legacy files, printer control data, or corrupted pasted content.
Use replace with the global flag: text.replace(/\v/g, "") to delete them, or replace with a space to keep word separation.
The \v escape is core regex syntax since ES3. It works in every browser and Node.js version.