before
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | before [2016/08/02 22:12] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ======Overview: | ||
+ | before(// | ||
+ | |||
+ | ======Technical: | ||
+ | The before() function returns the part of //text// before the //count//th instance of any of the characters in //chars//. | ||
+ | |||
+ | The //chars// argument may contain multiple characters. | ||
+ | |||
+ | If //text// does not contain //count// instances of any of the characters in //chars//, or if //count// is 0, then it returns the empty string. | ||
+ | |||
+ | If //count// is a negative number, the characters are counted from the end of the string. | ||
+ | |||
+ | ======Defined Behaviors: | ||
+ | ^ Call ^ Return Value ^ Because ^ | ||
+ | | before(1 ! hop!user@host) | ||
+ | | before(1 / / | ||
+ | | before(-1 / / | ||
+ | | before(-2 / / | ||
+ | | before(5 / / | ||
+ | | before(/ / | ||
+ | | before(0 ! hop!user@host) | ||
+ | | before(1 @ / | ||
+ | | before(/ | ||
+ | | before() | ||
+ | |||
+ | ======History: | ||
+ | This function first appeared in " | ||
+ | Support for the < | ||
before.txt · Last modified: 2016/08/02 22:12 by 127.0.0.1