The problem appears to be due to a numerical 10 within my data that is being interpreted as a line feed.
Take a look at the ASCII character table; a byte/character with a ordinal value of 10 is a linefeed (in most popular character encodings, at least). As mentioned above, using the /s modifier solves this problem.
If you're using this as a general technique, you should also be very careful that your @find array doesn't contain any other special characters like "(", or "[". Just because you write characters as escape sequences doesn't give them any special status: they're just characters.
In reply to Re: Using regexp with binary data
by Joost
in thread Using regexp with binary data
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |