haypo / hachoir
Hachoir is a Python library that allows to view and edit a binary stream field by field. In other words, Hachoir allows you to "browse" any binary stream just like you browse directories and files. A file is split in a tree of fields, where the smallest field is just one bit.
hachoir-regex is regex manipulation Python library. It's used by hachoir-subfile for fast pattern matching (find file header).
Examples
Regex creation
Optimizations
Pattern matching
find
<StringPattern 'un'> at 0: user=1 <StringPattern 'deux'> at 3: user=2 <RegexPattern 't(rois|hree)'> at 8: user=3
Download
See also
- CPAN Regexp::Assemble (Perl module)
- CPAN Regexp::Optimizer (Perl moduel)
- Kodos: The Python Regular Expression Debugger
- Kiki (website seems to be down, try swik.net or debian.org): tool for python regular expression testing
This revision is from 2010-02-04 12:56
