Este apéndice lista las características que son desaprobadas en JavaScript 1.5.
Propiedades de RegExp
Las siguientes propiedades son despreciadas:
Propiedad | Descripción |
---|---|
$1, ..., $9 |
Coincidencias de sub cadenas parentizandas, si existe una. |
$_ |
Véase entrada. |
$* |
Véase multilínea. |
$& |
Véase última coincidencia. |
$+ |
Véase ultimo paréntesis. |
$` |
Véase contexto izquierdo. |
$' |
Véase contexto derecho. |
entrada |
The string against which a regular expression is matched. |
lastMatch |
The last matched characters. |
lastParen |
The last parenthesized substring match, if any. |
leftContext |
The substring preceding the most recent match. |
rightContext |
The substring following the most recent match. |
The following are now properties of RegExp instances, no longer of the RegExp object:
</tr>
Property | Description |
---|---|
global |
Whether or not to test the regular expression against all possible matches in a string, or only against the first. |
ignoreCase |
Whether or not to ignore case while attempting a match in a string. |
lastIndex |
The index at which to start the next match. |
multiline |
Whether or not to search in strings across multiple lines. |
source |
The text of the pattern. |
RegExp Methods
The compile
method is deprecated.
The valueOf
method is no longer specialized for RegExp. Use Object.valueOf
.
Secuencias de Escape
Las secuencias octales de escape (\ seguida por uno, dos o tres dígitos octales) son deaprobadas en cadenas y literales de expresiones regurales.
Las funciones escape
y unescape
son desaprobadas. Utilice encodeURI
, encodeURIComponent
, decodeURI
o decodeURIComponent
para codificar y decodificar secuencias de escape para caracteres especiales.