RE_ASEARCH†
Format†
RE_ASEARCH( key , array )
Function†
- Searches a general purpose array for one value that "at least partially" matches the specified regular expression.
Arguments†
- key
- The key value (regular expression) to search for.
- array
- A general purpose array (simple arrays cannot be used).
Return value†
- The ordinal number (0-indexed) of the first element that is found is returned.
- If nothing is found, -1 is returned.
- RE_GETSTR/POS/LEN are not available.
- If you want to search for all instances, use Manual/Functions/RE_ASEARCHEX.
Related†
Version†
Example†
_array = ('Sakura','Mayura','Nekoko') // Assign a general purpose array
RE_ASEARCH('^Ma', _array) // "1" is output