mirror of https://github.com/asciimoo/exrex.git
[doc] examples
This commit is contained in:
parent
a34d8d10a9
commit
d8180cbfcd
|
@ -30,8 +30,6 @@ USAGE
|
|||
|
||||
### as python module
|
||||
|
||||
Examples:
|
||||
|
||||
```python
|
||||
>>> import exrex
|
||||
```
|
||||
|
@ -56,11 +54,6 @@ Examples:
|
|||
1023
|
||||
```
|
||||
|
||||
```python
|
||||
>>> list(exrex.generate('[ab]{1,3}'))
|
||||
['a', 'b', 'aa', 'ab', 'ba', 'bb', 'aaa', 'aab', 'aba', 'abb', 'baa', 'bab', 'bba', 'bbb']
|
||||
```
|
||||
|
||||
```python
|
||||
>>> print '\n'.join(exrex.generate('This is (a (code|cake|test)|an (apple|elf|output))\.'))
|
||||
This is a code.
|
||||
|
|
Loading…
Reference in New Issue