diff --git a/doc/regexp.rdoc b/doc/regexp.rdoc
index c6c983d1d9..51ea772062 100644
--- a/doc/regexp.rdoc
+++ b/doc/regexp.rdoc
@@ -407,7 +407,7 @@ a single one that matches any of the expressions. Each expression is an
== Condition
-The (?(cond>)yes|no)
+The (?(cond)yes|no)
syntax matches _yes_ part if _cond_ is captured, otherwise matches _no_ part.
In the case _no_ part is empty, also | can be omitted.