| kind | = | "Regexp" |
A regular expression allows you to matching text against a pattern.
Mimics
Inactive cells
Active cells
- !~(text)
- ==(other)
- ===(other)
- =~(...)
- allMatches(other)
- from(pattern, flags )
- hash()
- inspect()
- match(other)
- names()
- notice()
- pattern()
- quote(text)
Specs
Inactive cells (details)
Active cells (details)
returns true if the regular expression doesn't match, otherwise false
[ show source ]
method(text,
if(self =~(text),
false,
true))
nil
[ show source ]
method(other,
if(self same?(
#<Regexp:0>),
Reflector other:mimics?(cell(:other),
#<Regexp:0>),
bind(rescue(Condition Error, fn(c, false)),
self =~(
other))))
Takes one argument and tries to match that argument against the current pattern. Returns a list of all the texts that were matched.
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.
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