Skip to content

Commit 193fec9

Browse files
authored
escaped backslash in code tag
from \ to \\
1 parent d7defa2 commit 193fec9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tutorial/tutorial-english.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1236,7 +1236,7 @@ Spot why it fails (ie it does not die as expected)? Our regex to check a lone do
12361236

12371237
And it reads (as per the <code>YAPE::Regex::Explain</code> output): any character except: '.' (1 or more times (matching the most amount possible)) followed by '.' (1 times) followed by any character except: '.' (1 or more times (matching the most amount possible))
12381238

1239-
Which is simply not true for the given string <code>'.'</code> So we try changing both plus signs with question mark quantifiers in the regex: it does not help. As a wise friend explains, we need lookaround: <code>/(?&lt;!\.)\.(?!\.)/</code> will work! So we change the check in the module like follow:
1239+
Which is simply not true for the given string <code>'.'</code> So we try changing both plus signs with question mark quantifiers in the regex: it does not help. As a wise friend explains, we need lookaround: <code>/(?&lt;!\\.)\\.(?!\\.)/</code> will work! So we change the check in the module like follow:
12401240

12411241
<pre>
12421242
# not allowed a lone .

0 commit comments

Comments
 (0)