String.Extract()String.Length()String.Length()String.NormalizedLength()String.MatchPattern()Checks if the given string matches the pattern and returns TRUE if it does, and FALSE if it does not. Arguments
ReturnTypeBoolean Examplelet referenceString = "testString12345678"
let patternToMatch = "test...ing[1-8]{8}"
Notify(referenceString+" matches "+ patternToMatch +" = #",referenceString.MatchPattern(patternToMatch))
patternToMatch = "test...ing[1-8]{7}"
Notify(referenceString+" matches "+ patternToMatch +" = #",referenceString.MatchPattern(patternToMatch))
patternToMatch = "test...ing[1-5]{8}"
Notify(referenceString+" matches "+ patternToMatch +" = #",referenceString.MatchPattern(patternToMatch))
patternToMatch = ".*1[2-8]*"
Notify(referenceString+" matches "+ patternToMatch +" = #",referenceString.MatchPattern(patternToMatch))The result of the above example is the following: testString12345678 matches ...ing[1-8]{8} = true
testString12345678 matches ...ing[1-8]{7} = false
testString12345678 matches ...ing[1-5]{8} = false
testString12345678 matches .*1[2-8]* = trueNote:
In the example above:
String.Search()String.SearchPattern()Searches for an occurrence of the pattern in the string and returns it. Arguments
ReturnTypeString Examplelet referenceString = "test1test2test3test4"
let patternToSearch = "....1"
Notify("Searching "+ patternToSearch +" in "+referenceString+" found #",referenceString.SearchPattern(patternToSearch))
patternToSearch = "(test[2-9]){2}"
Notify("Searching "+ patternToSearch +" in "+referenceString+" found #",referenceString.SearchPattern(patternToSearch))The result of the above example is the following: Searching .... 1 in test1test2test3test4 found test1
Searching (test[2-9]){2} in test1test2test3test4 found test2test3Note:
In the example above:
String.ToDimension()String.ToReal() | |||||||||||||||||||||||||||||||||||