You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -126,7 +127,10 @@ We will use Regular Expressions in a tool called "Replace text". It contains fou
126
127
> > Regular expressions can not only find particular words, as you might be familiar with from regular text editors.
127
128
> > It is more powerful and can find particular patterns, for example, only capitalised words or all numbers.
128
129
> > In this step, we mostly delete unnecessary placeholders.
129
-
> > The first pattern we want to find is `\r`. It catches a specific form of invisible linebreaks that would create unwanted gaps in the comparison later. We delete those by leaving the optional "Replace with" field blank.
130
+
> > The first pattern we want to find is `\r`. It catches a specific form of invisible linebreaks that would create unwanted gaps in the comparison later.
131
+
> > We delete those by leaving the optional "Replace with" field blank.
132
+
> > The additional sed commands before replacement `:a;N;$!ba;` catch all blank spaces with this tool.
133
+
> > It is necessary only once to ensure that particular end-of-line characters are removed consistently.
130
134
> > Similarly, `\n` marks linebreaks. We also delete those by leaving the optional "Replace with" field blank.
131
135
> > The next expression we search for is `\s`. Those are spaces as you see them between words on your computer. We delete those.
132
136
> > As a result, there are no gaps in our text anymore.
0 commit comments