solved s11 ex02
This commit is contained in:
parent
20b9536061
commit
5d33f94e75
14
11/Aufgabe2.md
Normal file
14
11/Aufgabe2.md
Normal file
@ -0,0 +1,14 @@
|
||||
# a
|
||||
```
|
||||
(?:\d{1,3}\.){3}\d{1,3}
|
||||
```
|
||||
Genau genommen wird auch `999.999.999.999` gematched, obwohl das keine valide IP Adrese ist. Das würde aber den Regex sehr kompliziert machen.
|
||||
|
||||
|
||||
|
||||
# b
|
||||
see https://en.wikipedia.org/wiki/Email_address#Local-part
|
||||
```
|
||||
[A-Za-z0-9.!#$%&'*+-\/=?^_`{|}~]+@[A-Za-z0-9.!#$%&'*+-\/=?^_`{|}~]+\.[A-Za-z]+
|
||||
```
|
||||
Hier werden gewisse Teile des RFC's ignoriert, zb `space and special characters "(),:;<>@[\] are allowed with restrictions`.
|
Loading…
x
Reference in New Issue
Block a user