From 0e86a0adaf0fc40faba3eb94d085749d5f0c893e Mon Sep 17 00:00:00 2001 From: "Iury O. G. Figueiredo" Date: Fri, 3 Jul 2020 06:46:00 +0000 Subject: [PATCH] Improving docs. --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a951b4c..3b3973b 100644 --- a/README.md +++ b/README.md @@ -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