--- a/ChengsongTanPhdThesis/Chapters/Introduction.tex Thu Jun 29 04:17:48 2023 +0100
+++ b/ChengsongTanPhdThesis/Chapters/Introduction.tex Fri Jul 07 20:03:05 2023 +0100
@@ -204,7 +204,7 @@
%TODO: look up snort rules to use here--give readers idea of what regexes look like
-
+\marginpar{rephrasing using "imprecise words"}
Regular expressions, since their inception in the 1940s,
have been subject to extensive study and implementation.
Their primary application lies in text processing--finding
@@ -215,12 +215,11 @@
to recognise email addresses is
\marginpar{rephrased from "the regex for recognising" to "a simple regex that tries to match email"}
\begin{center}
-$[a-z0-9.\_]^\backslash+@[a-z0-9.-]^\backslash+\.\{a-z\}\{2,6\}$
+\verb|[a-z0-9._]^+@[a-z0-9.-]^+\.\{a-z\}\{2,6\}|
%$[a-z0-9._]^+@[a-z0-9.-]^+\.[a-z]{2,6}$.
\end{center}
\marginpar{Simplified example, but the distinction between . and escaped . is correct
-and therefore left unchanged.}
-
+and therefore left unchanged. Also verbatim package does not straightforwardly support superscripts so + kept as they are.}
%Using this, regular expression matchers and lexers are able to extract
%the domain names by the use of \verb|[a-zA-Z0-9.-]+|.
\marginpar{Rewrote explanation for the expression.}