Tags · Functions · Objects
Lucee Function Reference
Choose a function:

Function MID

Extracts a substring from a string.


mid(string string,number start,[number count]):string


The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Default Value Description
string string  Yes   Must be single-quotation mark or double-quotation mark delimited.  
start number  Yes   The position of the first character to retrieve.  
count number  No -1 The number of characters to retrieve. If not set, all characters until the end of the string will be returned.