diff --git a/01-regular-expressions.html b/01-regular-expressions.html index 7b8f4c52..5141d9a6 100644 --- a/01-regular-expressions.html +++ b/01-regular-expressions.html @@ -424,7 +424,7 @@

Show me the solution

-
+
organise
 organize
@@ -483,7 +483,7 @@ 

Show me the solution

-
+
organise
 Organize
@@ -519,7 +519,7 @@ 

Show me the solution

-
+
organiser
 Organized
@@ -555,7 +555,7 @@ 

Show me the solution

-
+
organise
 Organized
@@ -591,7 +591,7 @@ 

Show me the solution

-
+
organise
 Organized
@@ -627,7 +627,7 @@ 

Show me the solution

-
+
organisers
 Organizers
@@ -663,7 +663,7 @@ 

Show me the solution

-
+
organise
 Organi1e
@@ -724,7 +724,7 @@ 

Show me the solution

-
+
French
 France
@@ -760,7 +760,7 @@ 

Show me the solution

-
+
French
 France
@@ -794,7 +794,7 @@ 

Show me the solution

-
+
^France|^French

This will also find words where there were characters after @@ -823,7 +823,7 @@

Solutions

-
+
\b[Cc]olou?r\b|\bCOLOU?R\b
 /colou?r/i
@@ -865,7 +865,7 @@

Show me the solution

-
+
\bhead ?rest\b

Note that although \bhead\s?rest\b does work, it will @@ -896,7 +896,7 @@

Show me the solution

-
+
0+[A-Za-z]{4}\b
@@ -922,7 +922,7 @@

Show me the solution

-
+
\d{4}

Note: this will also match four-digit strings within longer strings @@ -950,7 +950,7 @@

Show me the solution

-
+
\b\d{2}-\d{2}-\d{4}\b

Depending on your data, you may choose to remove the word @@ -979,7 +979,7 @@

Show me the solution

-
+
\d{2}-\d{2}-\d{2,4}$

Note this will also find strings such as 31-01-198 at @@ -1011,7 +1011,7 @@

Show me the solution

-
+
.* ?: .*, \d{4}

Without word boundaries you will find that this matches any text you @@ -1096,7 +1096,7 @@

Keypoints