I've created a patcher in max 5 that uses hi to create menu of connected devices and I output this to regexp to find devices of specific types (with the possibility of more than one of t he same type). The search works fine, so that's not the problem, but I keep getting an annoying error message in the max window every time I do the search- regexp: PCRE error -10. Maybe if I wasn't so anal this wouldn't bother me, as the patcher still seems to work ok. But that's just the way I am... so it does. I've looked up perl error codes, and apparently error -10 isn't used... hmmm.
Basically my patcher sends a "menu" message to the hi object. The right output is connected to a regexp "Apple Internal Keyboard / Trackpad 2" with the third regexp output printing to the max window. I've attached the maxpat to see if anybody else gets the same error message.
The same patcher recreated for max 4.6.3 works fine with no error messages, so I reckon its a max 5 bug.
I've also tried creating a list from the hi output and sending that to regexp instead and I get the same error message, unless I edit the message manually and resend it. Voila no error. Wierd. Possibly something to do with the "end of line" or some other hidden character for each string being sent to regexp?