# string.mid()

Extracts a substring from a string.

```
string.mid( start=number, count=number )
```

**Returns:** string

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| start | number | Yes | The position of the first character to retrieve. |  |
| count | number | No | The number of characters to retrieve. If not set, all characters until the end of the string will be returned. |  |

# Examples

```cfml
	str="Hi buddy, Nice day!";
	writeDump(str.mid(4,9));
	writeDump(str.mid(9,1));
```

# Categories

[Strings](../../../categories/string.md)

# See Also

[Mid()](../../functions/mid.md), [String](../string.md)