File tree Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -13,18 +13,19 @@ pip install regex-generate-py
1313``` python
1414>> > from regex_generate_py import generate
1515>> >
16- >> > pattern = r " ( My| Your) name is an( ji| na| t) "
16+ >> > pattern = r " ( My| Your| His | Her ) name is an( ji| na| t| imal ) with number \- ? [ 0-9 ] {2,6} "
1717>> > for i in range (10 ):
1818... print (generate(pattern))
1919...
20- Your name is anna
21- My name is ant
22- Your name is anji
23- Your name is anji
24- My name is ant
25- Your name is anna
26- My name is ant
27- My name is anji
28- Your name is anji
29- My name is ant
3020```
21+ ``` text
22+ My name is animal with number 194
23+ His name is animal with number 24843
24+ Her name is anna with number -79
25+ My name is animal with number 60585
26+ Your name is animal with number 71877
27+ Your name is ant with number 41
28+ Her name is anna with number -16320
29+ My name is animal with number 353970
30+ His name is anna with number 42
31+ Your name is ant with number -040```
You can’t perform that action at this time.
0 commit comments