Quote:
Originally Posted by
shamrock
The C language doesn't have the regular expressions that Perl uses but it has its own built-in regular expressions the same as sed and awk so look up the man page of regexec / regcomp etc...
Hi shamrock,
Thanks for answer.
Yes, I've tried regex of C but are not powerfull enough. The regex I'm using are a kind of complex and use backreference, greedy, non-greedy options, etc. The C regexs does'nt support these kind of things from what I know.
Basically I'd like to process each chunk at a time from binary using as delimiter 0xFF65, but it seems java doesn't have the option to change the line separator when read a binary, similarly as I did with ruby in sample code I show in first post.
I'm not sure, maybe someone knows an alternative or a 3rd party library that could read binary and set a custom separator.
Regards