I think you want ".", rather then "\S" in your regex
I copied that from the original post. I have no idea what sort of file is being used.
Also, I think your matching code will miss cases where there is more then one match per line.
The inner while (the statement modifier) takes care of that.
U28geW91IGNhbiBhbGwgcm90MTMgY
W5kIHBhY2soKS4gQnV0IGRvIHlvdS
ByZWNvZ25pc2UgQmFzZTY0IHdoZW4
geW91IHNlZSBpdD8gIC0tIEp1ZXJk
In reply to Re: Re: Re: Searching binary data
by Juerd
in thread Searching binary data
by Shendal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |