mid
Description
Extract a specified number of characters from any side of a text.
Input / Parameter
Name | Description | Input Type | Default | Options | Required |
---|---|---|---|---|---|
string | The value where the extraction would happen. | String/Text | - | - | Yes |
start | The character count position where to start to extraction. The counting starts at 0. | Number | 0 | - | Yes |
length | The number of characters to extract. | Number | 0 | - | Yes |
Output
Description | Output Type |
---|---|
Returns the extracted text. | String/Text |
Callback
N/A
Video
Coming soon.
Example
The user wants to get a specific number of characters from a string, starting from the index specified.
Step
Call the function
console
. Call the functionmid
inside thevalue
parameter of theconsole
function. string: ABCDEFGHIJ start: 1 length: 3
Result
![](https://docs.emobiq.com/~gitbook/image?url=https%3A%2F%2F399701567-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FwmJ1RKjM2uNFaL6fO3Xu%252Fuploads%252Fgit-blob-778945ee6e29899b5d1b1692d2366e5cacd697d6%252Fmid-result-1.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=10a1a72f&sv=1)
Links
Last updated