Previous     Contents     Index     Next     
Core JavaScript Reference 1.5



Appendix B   Appendix B Deprecated Features


This appendix lists the features that are deprecated as of JavaScript 15.

  • RegExp Properties

    The following properties are deprecated.



    Property

    Description

    $1, ..., $9

     

    Parenthesized substring matches, if any.  

    $_

     

    See input.  

    $*

     

    See multiline.  

    $&

     

    See lastMatch.  

    $+

     

    See lastParen.  

    $`

     

    See leftContext.  

    $'

     

    See rightContext.  

    input

     

    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.



    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.

  • Escape sequences

    Octal escape sequences (\ followed by one, two, or three octal digits) are deprecated in string and regular expression literals.

    The escape and unescape functions are deprecated. Use encodeURI, encodeURIComponent, decodeURI or decodeURIComponent to encode and decode escape sequences for special characters.


Previous     Contents     Index     Next     
Copyright © 2000 Netscape Communications Corp. All rights reserved.

Last Updated September 28, 2000