diff options
Diffstat (limited to 'files/ru/web/javascript/reference/global_objects/regexp/tostring/index.html')
-rw-r--r-- | files/ru/web/javascript/reference/global_objects/regexp/tostring/index.html | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/files/ru/web/javascript/reference/global_objects/regexp/tostring/index.html b/files/ru/web/javascript/reference/global_objects/regexp/tostring/index.html index 7954da8a8e..ff2306ea30 100644 --- a/files/ru/web/javascript/reference/global_objects/regexp/tostring/index.html +++ b/files/ru/web/javascript/reference/global_objects/regexp/tostring/index.html @@ -12,21 +12,21 @@ translation_of: Web/JavaScript/Reference/Global_Objects/RegExp/toString --- <div>{{JSRef("Global_Objects", "RegExp")}}</div> -<h2 id="Summary" name="Summary">Сводка</h2> +<h2 id="Summary">Сводка</h2> <p>Метод <strong><code>toString()</code></strong> возвращает строковое представление регулярного выражения.</p> -<h2 id="Syntax" name="Syntax">Синтаксис</h2> +<h2 id="Syntax">Синтаксис</h2> <pre class="syntaxbox"><code><var>regexObj</var>.toString()</code></pre> -<h3 id="Parameters" name="Parameters">Параметры</h3> +<h3 id="Parameters">Параметры</h3> <p>Нет.</p> -<h2 id="Description" name="Description">Описание</h2> +<h2 id="Description">Описание</h2> <p>Объект {{jsxref("Global_Objects/RegExp", "RegExp")}} переопределяет метод <code>toString()</code> объекта {{jsxref("Global_Objects/Object", "Object")}}; он не наследует метод {{jsxref("Object.prototype.toString()")}}. Для объектов {{jsxref("Global_Objects/RegExp", "RegExp")}}, метод <code>toString()</code> возвращает строковое представление регулярного выражения.</p> -<h2 id="Examples" name="Examples">Примеры</h2> +<h2 id="Examples">Примеры</h2> -<h3 id="Example:_Using_toString" name="Example:_Using_toString">Пример: использование метода <code>toString()</code></h3> +<h3 id="Example:_Using_toString">Пример: использование метода <code>toString()</code></h3> <p>Следующий пример отображает строковое значение объекта {{jsxref("Global_Objects/RegExp", "RegExp")}}:</p> <pre class="brush: js">var myExp = new RegExp('a+b+c'); console.log(myExp.toString()); // отобразит '/a+b+c/' @@ -35,7 +35,7 @@ var foo = new RegExp('bar', 'g'); console.log(foo.toString()); // отобразит '/bar/g' </pre> -<h2 id="Specifications" name="Specifications">Спецификации</h2> +<h2 id="Specifications">Спецификации</h2> <table class="standard-table"> <tbody> <tr> @@ -61,10 +61,10 @@ console.log(foo.toString()); // отобразит '/bar/g' </tbody> </table> -<h2 id="Browser_compatibility" name="Browser_compatibility">Совместимость с браузерами</h2> +<h2 id="Browser_compatibility">Совместимость с браузерами</h2> <p>{{Compat}}</p> -<h2 id="See_also" name="See_also">Смотрите также</h2> +<h2 id="See_also">Смотрите также</h2> <ul> <li>{{jsxref("Object.prototype.toString()")}}</li> </ul> |