Skip to content
This repository was archived by the owner on Jun 9, 2025. It is now read-only.

Commit bbc5ddc

Browse files
committed
Add link to re.RegexObject.
1 parent 697157f commit bbc5ddc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,14 @@ A Python Implementation of [Simple Regex](https://simple-regex.com/).
99

1010
## How to use
1111

12+
Class `SRL` takes a Simple Regex Language string as input.
13+
`SRL` instance shares exactly same API with [re.RegexObject](https://docs.python.org/2/library/re.html#regular-expression-objects)
14+
1215
>>> from srl import SRL
1316
>>> srl = SRL('digit exactly 3 times')
1417
>>> srl.pattern
1518
'[0-9]{3}'
16-
>>> matched = srl.search('123') # Exactly same API with class re.RegexObject
19+
>>> matched = srl.search('123')
1720
>>> matched.group()
1821
'123'
1922

0 commit comments

Comments
 (0)