in reply to Using regexp with binary data
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using regexp with binary data
by fizbin (Chaplain) on Aug 28, 2005 at 15:54 UTC |