class RegExp extends scala.scalajs.js.Object with StObject with std.RegExp
- Annotations
- @JSType() @JSGlobal("RegExp") @native()
- Source
- RegExp.scala
- Alphabetic
- By Inheritance
- RegExp
- RegExp
- StObject
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new RegExp(pattern: scala.scalajs.js.RegExp, flags: java.lang.String)
- new RegExp(pattern: java.lang.String, flags: java.lang.String)
- new RegExp(pattern: scala.scalajs.js.RegExp)
- new RegExp(pattern: java.lang.String)
- new RegExp()
- Attributes
- protected
Value Members
- final def !=(arg0: Any): scala.Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): scala.Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def compile(): RegExp.this.type
- Definition Classes
- RegExp
- val dotAll: scala.Boolean
Returns a Boolean value indicating the state of the dotAll flag (s) used with a regular expression.
Returns a Boolean value indicating the state of the dotAll flag (s) used with a regular expression. Default is false. Read-only.
- Definition Classes
- RegExp
- final def eq(arg0: AnyRef): scala.Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): scala.Boolean
- Definition Classes
- AnyRef → Any
- def exec(string: java.lang.String): |[RegExpExecArray, Null]
Executes a search on a string using a regular expression pattern, and returns an array containing the results of that search.
Executes a search on a string using a regular expression pattern, and returns an array containing the results of that search.
- string
The String object or string literal on which to perform the search.
- Definition Classes
- RegExp
- val flags: java.lang.String
Returns a string indicating the flags of the regular expression in question.
Returns a string indicating the flags of the regular expression in question. This field is read-only. The characters in this string are sequenced and concatenated in the following order:
- "g" for global
- "i" for ignoreCase
- "m" for multiline
- "u" for unicode
- "y" for sticky
If no flags are set, the value is the empty string.
- Definition Classes
- RegExp
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- val global: scala.Boolean
Returns a Boolean value indicating the state of the global flag (g) used with a regular expression.
Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only.
- Definition Classes
- RegExp
- def hasOwnProperty(v: scala.Predef.String): scala.Boolean
- Definition Classes
- Object
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- val ignoreCase: scala.Boolean
Returns a Boolean value indicating the state of the ignoreCase flag (i) used with a regular expression.
Returns a Boolean value indicating the state of the ignoreCase flag (i) used with a regular expression. Default is false. Read-only.
- Definition Classes
- RegExp
- final def isInstanceOf[T0]: scala.Boolean
- Definition Classes
- Any
- def isPrototypeOf(v: scala.scalajs.js.Object): scala.Boolean
- Definition Classes
- Object
- val lastIndex: Double
- Definition Classes
- RegExp
- val match: Function1[java.lang.String, |[RegExpMatchArray, Null]]
Matches a string with this regular expression, and returns an array containing the results of that search.
Matches a string with this regular expression, and returns an array containing the results of that search.
- Definition Classes
- RegExp
- Annotations
- @JSName(js.Symbol.`match`)
- val multiline: scala.Boolean
Returns a Boolean value indicating the state of the multiline flag (m) used with a regular expression.
Returns a Boolean value indicating the state of the multiline flag (m) used with a regular expression. Default is false. Read-only.
- Definition Classes
- RegExp
- final def ne(arg0: AnyRef): scala.Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def propertyIsEnumerable(v: scala.Predef.String): scala.Boolean
- Definition Classes
- Object
- val replace: Function2[java.lang.String, java.lang.String, java.lang.String] with Function2[java.lang.String, Function2[java.lang.String, Any, java.lang.String], java.lang.String]
Replaces text in a string, using this regular expression.
Replaces text in a string, using this regular expression.
- Definition Classes
- RegExp
- Annotations
- @JSName(js.Symbol.replace)
- val search: Function1[java.lang.String, Double]
Finds the position beginning first substring match in a regular expression search using this regular expression.
Finds the position beginning first substring match in a regular expression search using this regular expression.
- Definition Classes
- RegExp
- Annotations
- @JSName(js.Symbol.search)
- val source: java.lang.String
Returns a copy of the text of the regular expression pattern.
Returns a copy of the text of the regular expression pattern. Read-only. The regExp argument is a Regular expression object. It can be a variable name or a literal.
- Definition Classes
- RegExp
- val split: Function2[java.lang.String, UndefOr[Double], scala.scalajs.js.Array[java.lang.String]]
Returns an array of substrings that were delimited by strings in the original input that match against this regular expression.
Returns an array of substrings that were delimited by strings in the original input that match against this regular expression.
If the regular expression contains capturing parentheses, then each time this regular expression matches, the results (including any undefined results) of the capturing parentheses are spliced.
- Definition Classes
- RegExp
- Annotations
- @JSName(js.Symbol.split)
- val sticky: scala.Boolean
Returns a Boolean value indicating the state of the sticky flag (y) used with a regular expression.
Returns a Boolean value indicating the state of the sticky flag (y) used with a regular expression. Default is false. Read-only.
- Definition Classes
- RegExp
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def test(string: java.lang.String): scala.Boolean
Returns a Boolean value that indicates whether or not a pattern exists in a searched string.
Returns a Boolean value that indicates whether or not a pattern exists in a searched string.
- string
String on which to perform the search.
- Definition Classes
- RegExp
- def toLocaleString(): scala.Predef.String
- Definition Classes
- Object
- def toString(): java.lang.String
- Definition Classes
- AnyRef → Any
- val unicode: scala.Boolean
Returns a Boolean value indicating the state of the Unicode flag (u) used with a regular expression.
Returns a Boolean value indicating the state of the Unicode flag (u) used with a regular expression. Default is false. Read-only.
- Definition Classes
- RegExp
- def valueOf(): Any
- Definition Classes
- Object
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated