Prototype JavaScript framework

class RegExp

Description

Extensions to the built-in RegExp object.

Methods

Instance methods

  • match

    RegExp#match(str) -> Boolean

    Return true if string matches the regular expression, false otherwise.

    Alias of:

Class methods

  • escape

    RegExp.escape(str) -> String
    • str (String) – A string intended to be used in a RegExp constructor.

    Escapes any characters in the string that have special meaning in a regular expression.

    Use before passing a string into the RegExp constructor.