From 2e23190dfe338170f4b25b79ade2cbc18477e7ee Mon Sep 17 00:00:00 2001 From: "Christoph J. Scherr" Date: Tue, 5 Sep 2023 15:35:03 +0200 Subject: [PATCH] formatting --- Tasks.md | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/Tasks.md b/Tasks.md index a45369f..6085c39 100644 --- a/Tasks.md +++ b/Tasks.md @@ -244,8 +244,8 @@ The text is large, read it [here](data/metasyntactic.md) and find the raw text f 1. Use a regular expression (regex) to find all instances of a lowercase character with a following vowel character, in which no 'x', z' or 'y' follows the vowel in the given Text. -It is not allowed to store the text in a variable, you must load it from an outside source, such as -a file. +It is not allowed to store the text in source code, you must load it from an outside source, +such as a file. Examples: @@ -258,28 +258,19 @@ Examples: | bAR | yes | | far | yes | -A hint that you don't want to miss: use [regex101.com](https://regex101.com) if you are not already -a REGEX expert. +A hint that you don't want to miss: + +Use [regex101.com](https://regex101.com) if you are not already a REGEX expert.
Hints -- Use `http.server.SimpleHTTPRequestHandler` and `io.BytesIO`. -- Define your own class that inherits `SimpleHTTPRequestHandler`. -- You don't need to implement `do_GET()`. -- Implement your own `send_head()` method. This is the method that writes your response (not - completely on it's own, but unless you feel like inspecting standard libraries, just do what - I'm saying.). -- `send_head()` should take no arguments (other than `self`) and return some readable buffer. -- Don't forget to set the headers for HTTP before sending the body. -- Your OS might block hosting to ports < 1000. Try to host your web server to `localhost:8080`. +TODO
Solution -Take a look at the provided Code Example. - -[Code Example](src/miniweb.py) +TODO