regex functions for UIAElementArray objects