A regular expression allows you to matching text against a pattern.

Mimics
Inactive cells
Active cells
Specs
Inactive cells (details)
kind = "Regexp"
Active cells (details)
!~(text)

returns true if the regular expression doesn't match, otherwise false

method(text, 
  if(self =~(text), 
    false, 
    true))
==(other)

returns true if the left hand side pattern is equal to the right hand side pattern.

===(other)

nil

method(other, 
  if(self same?(
      #<Regexp:0>), 
    Reflector other:mimics?(cell(:other), 
      #<Regexp:0>), 
    bind(rescue(Condition Error, fn(c, false)), 
      self =~(
        other))))
=~(...)

nil

allMatches(other)

Takes one argument and tries to match that argument against the current pattern. Returns a list of all the texts that were matched.

from(pattern, flags )

Takes one or two text arguments that describes the regular expression to create. the first text is the pattern and the second is the flags.

hash()

returns a hash for the regular expression

inspect()

Returns a text inspection of the object

match(other)

Takes one argument and tries to match that argument against the current pattern. Returns nil if no match can be done, or a Regexp Match object if a match succeeds

names()

returns a list of all the named groups in this regular expression

notice()

Returns a brief text inspection of the object

pattern()

Returns the pattern use for this regular expression

quote(text)

Takes one argument that should be a text and returns a text that has all regexp meta characters quoted