hachoir-regex 1.0
Sponsored Links
hachoir-regex 1.0 Ranking & Summary
File size:
0.020 MB
Platform:
Any Platform
License:
GPL (GNU General Public License)
Price:
Downloads:
849
Date added:
2007-07-03
Publisher:
Victor Stinner
hachoir-regex 1.0 description
hachoir-regex application is regex manipulation Python library. Its used by hachoir-subfile for fast pattern matching (find file header).
Examples
Regex creation
>>> from hachoir_core.regex import parse, createString
>>> createString("bike") | createString("motor")
< RegexOr (bike|motor) >
>>> createString("big ") + createString("bike")
< RegexString big bike >
>>> r=parse((cat|horse))
>>> r.minLength(), r.maxLength()
(3, 5)
Optimizations
>>> from hachoir_core.regex import parse, createString
>>> parse("(ma|mb|mc)")
< RegexAnd m[a-c] >
>>> createString("moto") | parse("mot.")
< RegexAnd mot. >
Pattern matching
from hachoir_core.regex import PatternMatching
p = PatternMatching()
p.addString("un", 1)
p.addString("deux", 2)
p.addRegex("(trois|three)", 3)
for start, end, item in p.search("un deux trois"):
print "%r at %s: user=%r" % (item, start, item.user)
find
< StringPattern un > at 0: user=1
< StringPattern deux > at 3: user=2
< RegexPattern t(rois|hree) > at 8: user=3
Enhancements:
- This version supports most regex structures and a lot of regex optimization, but keeps regex order.
Examples
Regex creation
>>> from hachoir_core.regex import parse, createString
>>> createString("bike") | createString("motor")
< RegexOr (bike|motor) >
>>> createString("big ") + createString("bike")
< RegexString big bike >
>>> r=parse((cat|horse))
>>> r.minLength(), r.maxLength()
(3, 5)
Optimizations
>>> from hachoir_core.regex import parse, createString
>>> parse("(ma|mb|mc)")
< RegexAnd m[a-c] >
>>> createString("moto") | parse("mot.")
< RegexAnd mot. >
Pattern matching
from hachoir_core.regex import PatternMatching
p = PatternMatching()
p.addString("un", 1)
p.addString("deux", 2)
p.addRegex("(trois|three)", 3)
for start, end, item in p.search("un deux trois"):
print "%r at %s: user=%r" % (item, start, item.user)
find
< StringPattern un > at 0: user=1
< StringPattern deux > at 3: user=2
< RegexPattern t(rois|hree) > at 8: user=3
Enhancements:
- This version supports most regex structures and a lot of regex optimization, but keeps regex order.
hachoir-regex 1.0 Screenshot
hachoir-regex 1.0 Keywords
python library
regex
parse
python
user
manipulation
application
hachoir-regex
hachoirregex
hachoir-regex 1.0
Others
Text Editing&Processing
Bookmark hachoir-regex 1.0
hachoir-regex 1.0 Copyright
WareSeeker periodically updates pricing and software information of hachoir-regex 1.0 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of hachoir-regex 1.0 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
Related Software
poker-engine is a Python library that implements poker rules. Free Download
Sub::Regex is a Perl module to create synonymous subroutines. Free Download
WAchecker is a Python library for writing and executing automated and semi-automated Web accessibility tests. Free Download
HTBGUI is a Frontend application for HTB traffic manipulation routines on linux system . Free Download
Unicode::Regex::Set is a subtraction and intersection of Character Sets in Unicode Regular Expressions. Free Download
bsnmp-regex is a module for bsnmpd which allows creation of counters from log files, program output or other text data. Free Download
PyChart is a Python library for creating high quality Encapsulated Postscript, PDF, PNG, or SVG charts. Free Download
Parse::RecDescent is a Perl module to generate Recursive-Descent Parsers. Free Download
Latest Software
Popular Software
Favourite Software