Skip to content

Commit

Permalink
Adding docs, fixing setup.py version.
Browse files Browse the repository at this point in the history
  • Loading branch information
Iury O. G. Figueiredo committed Jul 10, 2017
1 parent 9785879 commit ec03f52
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
21 changes: 21 additions & 0 deletions README.md
Expand Up @@ -222,6 +222,27 @@ Despite of the code being more prolix, using the functional syntax permits to be
regex for certain situations. Using a bit of imagination it can be thought as sort of an imperative
paradigm where Times, Include, Exclude play the role of retrieving content.

### Negative lookahead

~~~python
from crocs import *

e = Pattern(ConsumeBack('abc', 'def', neg=True))
e.test()

~~~

Output:

~~~
Regex; abc(?!def)
Input: abcoP7
Group dict: {}
Group 0: abc
Groups: ()
~~~

**Note:** crocs is in its early development state it is not supporting all regex's features.
Check the demo folder for better info on what it can be done.

Expand Down
3 changes: 2 additions & 1 deletion setup.py
Expand Up @@ -2,7 +2,7 @@

from distutils.core import setup
setup(name="crocs",
version="0.0.2",
version="0.0.3",
py_modules=["crocs"],
author="Iury O. G. Figueiredo",
author_email="ioliveira@id.uff.br",
Expand Down Expand Up @@ -43,5 +43,6 @@






0 comments on commit ec03f52

Please sign in to comment.