# P_regexarray
## Syntax:
@regexarray(pattern, arrayName)
## Use Case:
Searches through all values in the specified array using a Regular Expression pattern. Returns the key (or "row,col" for 2D arrays) of the first element that matches. Returns 0 if no match is found.
## Arguments:
- **{pattern}**: The Regular Expression pattern to search for.
- **{arrayName}**: The name of the array to search.
## Examples:
1. **/echo @regexarray(.*sword.*, InventoryArray)**
## See Also:
@regex, @regexmatch, @getarray
