# arraycopy
## Syntax:
/arraycopy **{array name}** **{copy name}** **[group name]**
## Use Case:
ArrayCopy lets you copy an array and its contents into a new array.
## Arguments:
- **{array name}**: The name of the existing array.
- **{copy name}**: The name of the new array which is a copy of the existing array.
- **[group name]**: *(Optional)* The name of the group to assign the copied array to. Defaults to "default".
## Examples:
1. **/arraycopy {RegexSubMatches} {MatchedText} {MyArrays}**
This would create an array called MatchedText which is a copy of the RegexSubMatches array at that time.
## See Also:
array, arraydbread, arraydbsave
