Skip to content

angelonuffer/Regex-Parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Regex Parser 0.0.1

Provide a tool to create parsers using regex to call methods.

Simple example

To call a method every times the pattern matches the string:

>>> from reparser import matches
>>> @matches(r"^(?P<foo>.*)$")
>>> def my_method(foo):
...     print "Method called with arg: %s" % foo
>>> search("foo\nbar")
Method called with arg: foo
Method called with arg: bar

Installing

Install using latest version:

$ git clone [email protected]:angelonuffer/Regex-Parser.git
# python setup.py install

*NOTE: the second command needs be runned with root user, you can use the sudo application for this

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages