in reply to Re^4: Deleting a matching string in an array
in thread Deleting a matching string in an array

That probably means that one (or more) of your robot identifier strings contain *+ or another illegal combination of *+?{...}.

If you look at my original posting you'll see that it maps the strings through quotemeta, which escapes those characters, making them safe to use in a regex.