Simplex represents the most basic expressions consisting in only two symbols :
- * - Ignore everything
- # - Match everything
This expamle get email addresses from specified string.
$str = "my email addresses is mailto:jon@email.com \
but you can use also the mailto:jon@yahoo.com address"
$expr = Simplex.create("*mailto:# *")
print $str.select($expr)
["jon@email.com"; "jon@yahoo.com"]
Methods inherited from: Concept
cloneConcept, extendsConcept, fromXML, getAllInheritedConcepts, getConceptAttribute, getConceptAttributeField, getConceptAttributeFields, getConceptAttributes, getConceptConstructors, getConceptElement, getConceptElementField, getConceptElementFields, getConceptElements, getConceptLabel, getConceptMethod, getConceptMethods, getConceptOperators, getConceptType, getConceptsAtPath, getErrorHandler, getInheritedConcepts, hasConceptAttribute, hasConceptElement, hasConceptMethod, hasPath, isHidden, loadContent, setConceptLabel, setErrorHandler, setHidden, setShowEmpty, showEmpty, toTXT, toXML |
|
Methods inherited from: Expression
|
Parameters: |
$pattern : | The pattern with which this Simplex will be created. |
|
Creates a new Simplex concept with the given $pattern.
Returns true if this concept contains the given string, false otherwise.
Returns a series which contains all matches between this concept and the
given string.
Returns this Simplex concept pattern.