Home

News

International

Screen Shots

Documentation

Download

Build

License

Credits

Contact

SourceForge Project

Tintware Documentation : Tint Programming Language : Tint Reference : Value Primitives : tint.rrest

Syntax

#(tint.rrest,%s,%match)
#(tint.rrest,%s,%match,%retain)

%s is a value to be searched backwards for %match. If %match is found in %s, then everything before %match in %s will be returned, otherwise, nothing will be returned. If %retain is specified, then the code or data attribute in %s will be carried into the result. Otherwise, the result is all data.

Examples

#(tint.rrest,abcdef,c)
ab
#(tint.rrest,abcabc,c)
abcab
#(tint.rrest,abcdef,g)

#(tint.rrest,abcdef,d,y)
abc