This version is out of date, covering development from v6.0.0 to v6.6.5. It is maintained here only for inbound reference links from elsewhere. It is no longer actively updated.

Jump to the current version of aTbRef

TinderboxSix Icon

String.beginsWith("string")


Operator Type: 

Operator Scope of Action: 

Operator Purpose: 

Operator First Added: 

Operator Altered: 

 Function   [other Function type actions]

 Item   [operators of similar scope]

 Data manipulation   [other Data manipulation operators]

 6.4.0

 


String.beginsWith("string")

String.beginsWith() returns true if the chained string begins with a specific substring.

For example, if $MyString is "I do not like green eggs and ham":

$MyString.beginsWith("I do") returns true

$MyString.beginsWith("Hello") returns false

Also, with string literals:

("There are gentlemen now abed.").beginsWith("There are") returns true

("There are gentlemen now abed.").beginsWith("Hello") returns false

This operator searches for literal strings, not regular expressions. Matches are case sensitive

("There are gentlemen now abed.").beginsWith("there are") returns false

See also String.endsWith(). If you need to search a String for a regular expression, use String.contains().



A Tinderbox Reference File : Actions & Rules : Operators : Full Operator List : String.beginsWith("string")