Javascript [Electronic resources] : The Definitive Guide (4th Edition) نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

Javascript [Electronic resources] : The Definitive Guide (4th Edition) - نسخه متنی

David Flanagan

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید

Availability


JavaScript 1.2; JScript 3.0; ECMAScript v3

Inherits from/Overrides


Overrides Object.toString( )


Synopsis

regexp.toString( )

Returns


A string representation of regexp.


Throws


TypeError

If this method is invoked on an object that is not a RegExp.


Description


The RegExp.toString( ) method returns a string
representation of a regular expression in the form of a regular
expression literal.

Note that implementations are not required to add escape sequences to
ensure that the returned string is a legal regular expression
literal. Consider the regular expression created by the expression
new RegExp("/", "g"). An
implementation of RegExp.toString( ) could return
///g for this regular expression, or it could also
add an escape sequence and return /\//g.

/ 844