The abstract concept has common super concept for regular and simple expression.
All expression concept has to inherited all methods of this concept.
Methods inherited from: Concept
cloneConcept, extendsConcept, fromXML, getAllInheritedConcepts, getConceptAttribute, getConceptAttributeField, getConceptAttributeFields, getConceptAttributes, getConceptConstructors, getConceptElement, getConceptElementField, getConceptElementFields, getConceptElements, getConceptLabel, getConceptMethod, getConceptMethods, getConceptOperators, getConceptType, getErrorHandler, getInheritedConcepts, getResourceURI, hasConceptAttribute, hasConceptElement, hasConceptMethod, hasPath, isHidden, loadContent, setConceptLabel, setErrorHandler, setHidden, setShowEmpty, showEmpty, toTXT, toXML, setResourceURI |
|
Creates a new Expression with the given $pattern.
Creates a new empty Expression.
Returns true if this expression contains the string given as parameter,
false otherwise.
$expr = Simplex.create("*is*")
print $expr.contains("this is a test")
-- the result is --
true
Parameters: |
$pattern : | Any pattern. |
$str : | Any string. |
|
Returns true if this expression contains the given string with the
specified pattern, false otherwise.
print Simplex.contains("*is*", "this is a test")
-- the result is --
true
Parameters: |
$pattern : | Any pattern. |
$str : | Any string. |
|
Returns a series which represents all matches between this Expression
and the given string with the specified pattern.
print Simplex.getMatches("#test*", "this is a test, a simplex matches test.")
-- the result is --
this is a
, a simplex matches
Returns a series which represents all matches between this Expression
and the given string.
$expr = Simplex.create("#test*")
print $expr.getMatches("this is a test, a simplex matches test.")
-- the result is --
this is a
, a simplex matches
Returns this Expression's pattern if there is any.
$expr = Simplex.create("#test*")
print $expr.getPattern
-- the result is --
#test*
Parameters: |
$pattern : | Any pattern. |
$str : | Any string. |
|
Returns true if this Expression and the given srting matches by the
specified pattern, false otherwise.
print Simplex.getMatches("#test*", "this is a test, a simplex matches test.")
-- the result is --
true
Returns true if this Expression and the given string matches, false
otherwise.
$expr = Simplex.create("#test*")
print $expr.matches("this is a test, a simplex matches test.")
-- the result is --
true
Sets this Expression's pattern to the pattern given as parameter.
$expr = Simplex.create("#test*")
print $expr.getPattern
$expr.setPattern("*is#")
print $expr.getPattern
-- the result is --
#test*
*is#