.. _RegExp: ================================================ RegExp ================================================ Description ----------- Wraps a regular expression. Static Properties ^^^^^^^^^^^^^^^^^ +---------------------------------------------------+-----------------------------------------------------+ | :ref:`$1` readonly | The matched subexpression #1. | +---------------------------------------------------+-----------------------------------------------------+ | :ref:`$2` readonly | The matched subexpression #2. | +---------------------------------------------------+-----------------------------------------------------+ | :ref:`$3` readonly | The matched subexpression #3. | +---------------------------------------------------+-----------------------------------------------------+ | :ref:`$4` readonly | The matched subexpression #4. | +---------------------------------------------------+-----------------------------------------------------+ | :ref:`$5` readonly | The matched subexpression #5. | +---------------------------------------------------+-----------------------------------------------------+ | :ref:`$6` readonly | The matched subexpression #6. | +---------------------------------------------------+-----------------------------------------------------+ | :ref:`$7` readonly | The matched subexpression #7. | +---------------------------------------------------+-----------------------------------------------------+ | :ref:`$8` readonly | The matched subexpression #8. | +---------------------------------------------------+-----------------------------------------------------+ | :ref:`$9` readonly | The matched subexpression #9. | +---------------------------------------------------+-----------------------------------------------------+ | :ref:`global` readonly | Indicates whether the match is a global match. | +---------------------------------------------------+-----------------------------------------------------+ | :ref:`ignoreCase` readonly | Indicates whether the match is not case sensitive. | +---------------------------------------------------+-----------------------------------------------------+ | :ref:`input` readonly | The original input string. | +---------------------------------------------------+-----------------------------------------------------+ | :ref:`lastMatch` readonly | The last match. | +---------------------------------------------------+-----------------------------------------------------+ | :ref:`lastParen` readonly | The value of the last matched subexpression. | +---------------------------------------------------+-----------------------------------------------------+ | :ref:`leftContext` readonly | The string before the match. | +---------------------------------------------------+-----------------------------------------------------+ | :ref:`multiline` readonly | Indicates whether the match matches multiple lines. | +---------------------------------------------------+-----------------------------------------------------+ | :ref:`rightContext` readonly | The string after the match. | +---------------------------------------------------+-----------------------------------------------------+ Constructors ^^^^^^^^^^^^ +---------------------------------------+-------------------------------------------------------------------------------------------------------------+ | :ref:`RegExp` readonly | Creates and returns a new RegExp object set to the value of the argument converted to a regular expression. | +---------------------------------------+-------------------------------------------------------------------------------------------------------------+ Methods ^^^^^^^ +-------------------------------------------+--------------------------------------------------------------------------------------------+ | :ref:`compile` readonly | Compiles a string to a regular expression. Returns true if the compilation was successful. | +-------------------------------------------+--------------------------------------------------------------------------------------------+ | :ref:`exec` readonly | Execute a regular expression. | +-------------------------------------------+--------------------------------------------------------------------------------------------+ | :ref:`test` readonly | Execute a regular expression, and return true if there is a match. | +-------------------------------------------+--------------------------------------------------------------------------------------------+ | :ref:`toString` readonly | Converts this RegExp object to a string. | +-------------------------------------------+--------------------------------------------------------------------------------------------+ .. container:: hide .. toctree:: :hidden: :maxdepth: 1 RegExp/$1.rst RegExp/$2.rst RegExp/$3.rst RegExp/$4.rst RegExp/$5.rst RegExp/$6.rst RegExp/$7.rst RegExp/$8.rst RegExp/$9.rst RegExp/lastMatch.rst RegExp/lastParen.rst RegExp/leftContext.rst RegExp/rightContext.rst RegExp/global.rst RegExp/ignoreCase.rst RegExp/multiline.rst RegExp/input.rst RegExp/toString.rst RegExp/compile.rst RegExp/exec.rst RegExp/test.rst RegExp/RegExp.rst