From 8ee32cce288520996322e41f76c6104082e47ab0 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 24 Jan 2024 22:10:47 +0100 Subject: Fix typos --- src/blog/grab/index.gsp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/blog/grab/index.gsp b/src/blog/grab/index.gsp index b9d0d84..92d97ea 100644 --- a/src/blog/grab/index.gsp +++ b/src/blog/grab/index.gsp @@ -138,7 +138,7 @@ html lang="en" { } p {- - The @code{-grab} utility moves away from this limiting paradiagm; the + The @code{-grab} utility moves away from this limiting paradigm; the newline is treated no differently from another other character you want to match. Want to match an entire paragraph of text? The pattern is as simple as ‘@code{-[^\\n].‌+?(?=\\n\\n|$)}’. It may look @@ -165,7 +165,7 @@ html lang="en" { } p {- - Here we’re using the ‘x’ operator. It iterates over all occurances of + Here we’re using the ‘x’ operator. It iterates over all occurrences of the pattern. In this case we’re iterating over all paragraphs in our input. Maybe we want to see all paragraphs which contain doubled words (for example: ‘the the’), a common typo found in text files. For this @@ -180,7 +180,7 @@ html lang="en" { The fundamental difference between the two operators is that the ‘x’ operator specifies the structure to iterate over. In the context of @code{-grep} these are lines, but in @code{-grab} they can be whatever - you want. The ‘g’ operator on the otherhand doesn’t modify the + you want. The ‘g’ operator on the other hand doesn’t modify the structure of the matches returned to you at all; it simply acts as a filter selecting matches with match the given regular expression. } @@ -207,7 +207,7 @@ html lang="en" { been highlighted by some bright flashy color. It is for this reason that the ‘h’ operator exists. This operator is unique in that it does not change the given selections at all. Any matches made by previous - occurances of ‘x' and ‘g’ will be displayed the same with and without + occurrences of ‘x' and ‘g’ will be displayed the same with and without the use of ‘h’. } -- cgit v1.2.3