Skip to content

Commit

Permalink
Improving docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
iogf committed Jul 3, 2020
1 parent 5c13234 commit 0e86a0a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,15 @@ join0 = Join(regexstr0, x0, regexstr1)
The actual implementation supports most Python regex features, groups, named groups,
sets, lookahead, lookbehind etc.

what if you need to implement a regex to solve the problem below?
What if you need to implement a regex to solve the problem below?

**Problem:** Match mails whose domain ends with 'br' and the hostname
contains 'python' at the beginning. Make sure that the first
letter in the mail name is in the set [a-z] as well.

**YRegex:**
If you decide to use crocs's yregex approach then you could have comments around
statements and you could test seperately each one of the sub patterns. It should improve
your reasoning and slow down development/debugging time.

~~~python
from crocs.regex import Seq, Include, Repeat, Join, NamedGroup, Include
Expand Down

0 comments on commit 0e86a0a

Please sign in to comment.