To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit b98af395 authored by vermeul's avatar vermeul
Browse files

typo

parent 9bc02a72
......@@ -80,7 +80,7 @@ The re.X flag allows you to define regular expressions over multiple lines. More
Who would like to debug this regular expression?
```python
regex = re.compile('^(?P<alias_alternative>(?P<requested_entity>experiment|collection)(\.(?P<attribute>\w+))?)(\s+(?i)AS\s+(?P<alias>\w+))?\s*$)')
regex = re.compile('^(?P<alias_alternative>(?P<requested_entity>experiment|collection)(\.(?P<attribute>\w+))?)(\s+(?i)AS\s+(?P<alias>\w+))?\s*$')
```
Split the regular expression on multiple lines and add comments. Of course, you need now to specify every blank space with `\s`, but this good practice anyway:
......@@ -130,4 +130,4 @@ alias = alias[0] if alias else attribute
```
</strong>
In this case, our alias will be the same as the attribute, if it was not explicitly defined.
\ No newline at end of file
In this case, our alias will be the same as the attribute, if it was not explicitly defined.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment