Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
159 commits
Select commit Hold shift + click to select a range
7cdcbcf
New translations meta.yml (Romanian)
ninaszymor Mar 2, 2020
3826494
New translations step_2.md (Danish)
ninaszymor Mar 2, 2020
b35fdf7
New translations step_2.md (Catalan)
ninaszymor Mar 2, 2020
332c120
New translations step_3.md (Catalan)
ninaszymor Mar 2, 2020
3fbc720
New translations meta.yml (Czech)
ninaszymor Mar 2, 2020
b3608f7
New translations step_1.md (Czech)
ninaszymor Mar 2, 2020
5ee10dc
New translations step_2.md (Czech)
ninaszymor Mar 2, 2020
80b8c57
New translations step_3.md (Czech)
ninaszymor Mar 2, 2020
cb897f8
New translations step_1.md (Danish)
ninaszymor Mar 2, 2020
4334ddd
New translations step_3.md (Danish)
ninaszymor Mar 2, 2020
fff4a1d
New translations meta.yml (Catalan)
ninaszymor Mar 2, 2020
85fcbd7
New translations meta.yml (German)
ninaszymor Mar 2, 2020
1b9ef5f
New translations step_1.md (German)
ninaszymor Mar 2, 2020
d98bb23
New translations step_2.md (German)
ninaszymor Mar 2, 2020
252e1a2
New translations step_3.md (German)
ninaszymor Mar 2, 2020
04746bd
New translations meta.yml (Greek)
ninaszymor Mar 2, 2020
0d0d74f
New translations step_1.md (Greek)
ninaszymor Mar 2, 2020
008f797
New translations step_1.md (Romanian)
ninaszymor Mar 2, 2020
2b0e438
New translations step_1.md (Catalan)
ninaszymor Mar 2, 2020
0fcfbdc
New translations meta.yml (Danish)
ninaszymor Mar 2, 2020
152cdd0
New translations step_3.md (Arabic)
ninaszymor Mar 2, 2020
5aa05ad
New translations step_2.md (Spanish)
ninaszymor Mar 2, 2020
abe568e
New translations step_2.md (Arabic)
ninaszymor Mar 2, 2020
6ceb577
New translations step_3.md (Romanian)
ninaszymor Mar 2, 2020
38fabb7
New translations meta.yml (French)
ninaszymor Mar 2, 2020
0f70d9e
New translations step_1.md (French)
ninaszymor Mar 2, 2020
cebbeee
New translations step_2.md (French)
ninaszymor Mar 2, 2020
796623b
New translations step_3.md (French)
ninaszymor Mar 2, 2020
27b01e1
New translations step_1.md (Spanish)
ninaszymor Mar 2, 2020
6258c7f
New translations meta.yml (Spanish)
ninaszymor Mar 2, 2020
d7b4a6a
New translations step_3.md (Spanish)
ninaszymor Mar 2, 2020
def9120
New translations step_2.md (Romanian)
ninaszymor Mar 2, 2020
24feaab
New translations meta.yml (Afrikaans)
ninaszymor Mar 2, 2020
a61ebe0
New translations step_1.md (Afrikaans)
ninaszymor Mar 2, 2020
2180a23
New translations step_2.md (Afrikaans)
ninaszymor Mar 2, 2020
5564b9c
New translations step_3.md (Afrikaans)
ninaszymor Mar 2, 2020
6eb0937
New translations meta.yml (Arabic)
ninaszymor Mar 2, 2020
b619618
New translations step_1.md (Arabic)
ninaszymor Mar 2, 2020
721fbfe
New translations step_2.md (Swedish)
ninaszymor Mar 2, 2020
02b0581
New translations meta.yml (Ukrainian)
ninaszymor Mar 2, 2020
601d4bd
New translations step_3.md (Turkish)
ninaszymor Mar 2, 2020
13a0094
New translations step_2.md (Turkish)
ninaszymor Mar 2, 2020
6b72f67
New translations step_1.md (Turkish)
ninaszymor Mar 2, 2020
3c472ef
New translations meta.yml (Turkish)
ninaszymor Mar 2, 2020
e0f1716
New translations step_3.md (Swedish)
ninaszymor Mar 2, 2020
8ee38a2
New translations step_1.md (Russian)
ninaszymor Mar 2, 2020
bd78102
New translations step_1.md (Swedish)
ninaszymor Mar 2, 2020
9647e0f
New translations meta.yml (Swedish)
ninaszymor Mar 2, 2020
62427a2
New translations step_3.md (Serbian (Cyrillic))
ninaszymor Mar 2, 2020
805008a
New translations step_2.md (Serbian (Cyrillic))
ninaszymor Mar 2, 2020
69b0b11
New translations step_1.md (Serbian (Cyrillic))
ninaszymor Mar 2, 2020
f38e8c4
New translations meta.yml (Serbian (Cyrillic))
ninaszymor Mar 2, 2020
c68448b
New translations step_3.md (Russian)
ninaszymor Mar 2, 2020
6b53873
New translations step_2.md (Russian)
ninaszymor Mar 2, 2020
69f70a0
New translations step_2.md (Ukrainian)
ninaszymor Mar 2, 2020
10e58a3
New translations step_1.md (Ukrainian)
ninaszymor Mar 2, 2020
8ad8cc4
New translations step_1.md (Portuguese, Brazilian)
ninaszymor Mar 2, 2020
22d702c
New translations step_3.md (Ukrainian)
ninaszymor Mar 2, 2020
f920a76
New translations step_2.md (English)
ninaszymor Mar 2, 2020
22a0b0b
New translations step_2.md (Portuguese, Brazilian)
ninaszymor Mar 2, 2020
45dc5ef
New translations step_3.md (Portuguese)
ninaszymor Mar 2, 2020
f8172cd
New translations meta.yml (Portuguese, Brazilian)
ninaszymor Mar 2, 2020
edd1863
New translations step_3.md (Vietnamese)
ninaszymor Mar 2, 2020
6d8e6fe
New translations step_2.md (Vietnamese)
ninaszymor Mar 2, 2020
45182cf
New translations step_1.md (Vietnamese)
ninaszymor Mar 2, 2020
849f811
New translations meta.yml (Vietnamese)
ninaszymor Mar 2, 2020
a0c636d
New translations step_3.md (English)
ninaszymor Mar 2, 2020
c271f22
New translations step_1.md (English)
ninaszymor Mar 2, 2020
bf13e63
New translations meta.yml (Chinese Simplified)
ninaszymor Mar 2, 2020
7c449a3
New translations meta.yml (English)
ninaszymor Mar 2, 2020
072e978
New translations step_3.md (Chinese Traditional)
ninaszymor Mar 2, 2020
cd0c11d
New translations step_2.md (Chinese Traditional)
ninaszymor Mar 2, 2020
38df052
New translations step_1.md (Chinese Traditional)
ninaszymor Mar 2, 2020
9a8a1c5
New translations meta.yml (Chinese Traditional)
ninaszymor Mar 2, 2020
0257683
New translations step_3.md (Chinese Simplified)
ninaszymor Mar 2, 2020
e22da55
New translations step_2.md (Chinese Simplified)
ninaszymor Mar 2, 2020
d9a5184
New translations step_1.md (Chinese Simplified)
ninaszymor Mar 2, 2020
fb36197
New translations meta.yml (Russian)
ninaszymor Mar 2, 2020
36fca20
New translations meta.yml (Korean)
ninaszymor Mar 2, 2020
48666f8
New translations step_2.md (Portuguese)
ninaszymor Mar 2, 2020
b5c5533
New translations step_3.md (Hebrew)
ninaszymor Mar 2, 2020
6276592
New translations step_2.md (Italian)
ninaszymor Mar 2, 2020
2cb34be
New translations step_1.md (Italian)
ninaszymor Mar 2, 2020
544d8ce
New translations meta.yml (Italian)
ninaszymor Mar 2, 2020
6144fe8
New translations step_3.md (Hungarian)
ninaszymor Mar 2, 2020
28415ff
New translations step_2.md (Hungarian)
ninaszymor Mar 2, 2020
bcb5549
New translations step_1.md (Hungarian)
ninaszymor Mar 2, 2020
a604aa8
New translations meta.yml (Hungarian)
ninaszymor Mar 2, 2020
5d14df9
New translations step_2.md (Hebrew)
ninaszymor Mar 2, 2020
7cd34c3
New translations meta.yml (Japanese)
ninaszymor Mar 2, 2020
6c473bb
New translations step_1.md (Hebrew)
ninaszymor Mar 2, 2020
c1405e2
New translations meta.yml (Hebrew)
ninaszymor Mar 2, 2020
3e183cd
New translations step_3.md (Finnish)
ninaszymor Mar 2, 2020
eb9ae6f
New translations step_2.md (Finnish)
ninaszymor Mar 2, 2020
fdbf8d9
New translations step_1.md (Finnish)
ninaszymor Mar 2, 2020
ab204cb
New translations meta.yml (Finnish)
ninaszymor Mar 2, 2020
d96f896
New translations step_3.md (Greek)
ninaszymor Mar 2, 2020
071d754
New translations step_2.md (Greek)
ninaszymor Mar 2, 2020
480b70d
New translations step_3.md (Italian)
ninaszymor Mar 2, 2020
1e41bd5
New translations step_1.md (Japanese)
ninaszymor Mar 2, 2020
21baa43
New translations step_1.md (Portuguese)
ninaszymor Mar 2, 2020
2353c80
New translations step_1.md (Norwegian)
ninaszymor Mar 2, 2020
b9430b5
New translations meta.yml (Portuguese)
ninaszymor Mar 2, 2020
cf85285
New translations step_3.md (Polish)
ninaszymor Mar 2, 2020
b9b707f
New translations step_2.md (Polish)
ninaszymor Mar 2, 2020
98c08bb
New translations step_1.md (Polish)
ninaszymor Mar 2, 2020
41a0270
New translations meta.yml (Polish)
ninaszymor Mar 2, 2020
f5558cf
New translations step_3.md (Norwegian)
ninaszymor Mar 2, 2020
628cb52
New translations step_2.md (Norwegian)
ninaszymor Mar 2, 2020
e15c2d9
New translations meta.yml (Norwegian)
ninaszymor Mar 2, 2020
08fdbc6
New translations step_2.md (Japanese)
ninaszymor Mar 2, 2020
9aad50e
New translations step_3.md (Dutch)
ninaszymor Mar 2, 2020
9ce3ac3
New translations step_2.md (Dutch)
ninaszymor Mar 2, 2020
e17167e
New translations step_1.md (Dutch)
ninaszymor Mar 2, 2020
260a7b3
New translations meta.yml (Dutch)
ninaszymor Mar 2, 2020
8086293
New translations step_3.md (Korean)
ninaszymor Mar 2, 2020
ff1402d
New translations step_2.md (Korean)
ninaszymor Mar 2, 2020
61c6e3f
New translations step_1.md (Korean)
ninaszymor Mar 2, 2020
d9e84b3
New translations step_3.md (Japanese)
ninaszymor Mar 2, 2020
7abcd8e
New translations step_3.md (Portuguese, Brazilian)
ninaszymor Mar 2, 2020
16c2e87
New translations .keep (Romanian)
majamanojlovic Apr 26, 2020
faeb936
New translations step_2.md (Dutch)
majamanojlovic Apr 26, 2020
03a9c24
New translations .keep (Vietnamese)
majamanojlovic Apr 26, 2020
270c3cb
New translations .keep (English)
majamanojlovic Apr 26, 2020
4c4b569
New translations .keep (Chinese Traditional)
majamanojlovic Apr 26, 2020
e622373
New translations .keep (Chinese Simplified)
majamanojlovic Apr 26, 2020
3c4c2fc
New translations .keep (Ukrainian)
majamanojlovic Apr 26, 2020
57fac25
New translations .keep (Turkish)
majamanojlovic Apr 26, 2020
b3bddee
New translations .keep (Swedish)
majamanojlovic Apr 26, 2020
761cb86
New translations .keep (Serbian (Cyrillic))
majamanojlovic Apr 26, 2020
43ad64c
New translations .keep (Russian)
majamanojlovic Apr 26, 2020
581d20f
New translations .keep (Portuguese)
majamanojlovic Apr 26, 2020
876a682
New translations .keep (Polish)
majamanojlovic Apr 26, 2020
df341d6
New translations .keep (Norwegian)
majamanojlovic Apr 26, 2020
a35f80a
New translations .keep (Dutch)
majamanojlovic Apr 26, 2020
53f7497
New translations step_3.md (Dutch)
majamanojlovic Apr 26, 2020
7743366
New translations step_1.md (Dutch)
majamanojlovic Apr 26, 2020
0c78e88
New translations .keep (French)
majamanojlovic Apr 26, 2020
9868aca
New translations .keep (German)
majamanojlovic Apr 26, 2020
07e0bf7
New translations .keep (Spanish)
majamanojlovic Apr 26, 2020
f3243c5
New translations .keep (Afrikaans)
majamanojlovic Apr 26, 2020
55acf6a
New translations .keep (Arabic)
majamanojlovic Apr 26, 2020
3b842c1
New translations .keep (Catalan)
majamanojlovic Apr 26, 2020
cdc21e0
New translations .keep (Czech)
majamanojlovic Apr 26, 2020
1f0578d
New translations .keep (Danish)
majamanojlovic Apr 26, 2020
9f7cf27
New translations .keep (Greek)
majamanojlovic Apr 26, 2020
5a12d69
New translations meta.yml (Dutch)
majamanojlovic Apr 26, 2020
071e9bd
New translations .keep (Finnish)
majamanojlovic Apr 26, 2020
13d3d49
New translations .keep (Hebrew)
majamanojlovic Apr 26, 2020
314deab
New translations .keep (Hungarian)
majamanojlovic Apr 26, 2020
3e70b02
New translations .keep (Italian)
majamanojlovic Apr 26, 2020
ca018d9
New translations .keep (Japanese)
majamanojlovic Apr 26, 2020
a222968
New translations .keep (Korean)
majamanojlovic Apr 26, 2020
2a5cfd3
New translations .keep (Portuguese, Brazilian)
majamanojlovic Apr 26, 2020
c44b5a6
New translations meta.yml (Spanish, Latin America)
majamanojlovic Jul 28, 2020
8b7f1b6
New translations step_1.md (Spanish, Latin America)
majamanojlovic Jul 28, 2020
32962cd
New translations step_2.md (Spanish, Latin America)
majamanojlovic Jul 28, 2020
acb4f91
New translations step_3.md (Spanish, Latin America)
majamanojlovic Jul 28, 2020
e76d92f
New translations .keep (Spanish, Latin America)
majamanojlovic Jul 28, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions af-ZA/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
title: Substitute simple regex patterns with Python
hero_image: images/banner.png
description: Replace character patterns with Python and regex
original_url:
theme: red #possible values: blue, green, navy, orange, red, turquoise, violet, yellow
duration: 1
listed: false
ingredient: true
copyedit: true
curriculum:
interests:
technologies: "regex, python"
site_areas:
steps:
-
title: Replacing patterns

1 change: 1 addition & 0 deletions af-ZA/solutions/.keep
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

46 changes: 46 additions & 0 deletions af-ZA/step_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
- You can find and replace simple patterns of characters using Python's `re` module.

- A simple pattern would be a single character or a sequence of characters, such as 'A' or 'cat'.

- First, import the `re` module in your script:

```python
import re
```

- Then create a simple string with which to experiment.

```python
import re
title = 'Harry Potter'
```

- Using `re.sub` you can change any character in the string. For instance, changing the `r` characters to `i` looks like this:

```python
new_title = re.sub('r', 'i', title)
print(new_title)
```
- This will give us `'Haiiy Pottei'`.

- You can also change sequences of characters:

```python
new_title = re.sub('rr', 'pp', title)
```

- Printing `new_title` will now give you `'Happy Potter'`.

- Of course, you can also substitute whole words.

```python
new_title = re.sub('Potter', 'Styles', title)
```

- You can also stop the substitution after a set number of replacements. So to only replace the first match, you can do this:

```python
new_title = re.sub('r', 'i', title, 1)
```

- This will make the `new_title` variable contain `'Hairy Potter'`.
13 changes: 13 additions & 0 deletions af-ZA/step_2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## What you will need

### Hardware

+ List hardware here, or delete section.

### Software

+ List software here, or delete section.

### Additional Resources

+ List additional resources, or delete section.
3 changes: 3 additions & 0 deletions af-ZA/step_3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## Step title

+ Step content...
18 changes: 18 additions & 0 deletions ar-SA/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
title: Substitute simple regex patterns with Python
hero_image: images/banner.png
description: Replace character patterns with Python and regex
original_url:
theme: red #possible values: blue, green, navy, orange, red, turquoise, violet, yellow
duration: 1
listed: false
ingredient: true
copyedit: true
curriculum:
interests:
technologies: "regex, python"
site_areas:
steps:
-
title: Replacing patterns

1 change: 1 addition & 0 deletions ar-SA/solutions/.keep
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

46 changes: 46 additions & 0 deletions ar-SA/step_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
- You can find and replace simple patterns of characters using Python's `re` module.

- A simple pattern would be a single character or a sequence of characters, such as 'A' or 'cat'.

- First, import the `re` module in your script:

```python
import re
```

- Then create a simple string with which to experiment.

```python
import re
title = 'Harry Potter'
```

- Using `re.sub` you can change any character in the string. For instance, changing the `r` characters to `i` looks like this:

```python
new_title = re.sub('r', 'i', title)
print(new_title)
```
- This will give us `'Haiiy Pottei'`.

- You can also change sequences of characters:

```python
new_title = re.sub('rr', 'pp', title)
```

- Printing `new_title` will now give you `'Happy Potter'`.

- Of course, you can also substitute whole words.

```python
new_title = re.sub('Potter', 'Styles', title)
```

- You can also stop the substitution after a set number of replacements. So to only replace the first match, you can do this:

```python
new_title = re.sub('r', 'i', title, 1)
```

- This will make the `new_title` variable contain `'Hairy Potter'`.
13 changes: 13 additions & 0 deletions ar-SA/step_2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## What you will need

### Hardware

+ List hardware here, or delete section.

### Software

+ List software here, or delete section.

### Additional Resources

+ List additional resources, or delete section.
3 changes: 3 additions & 0 deletions ar-SA/step_3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## Step title

+ Step content...
18 changes: 18 additions & 0 deletions ca-ES/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
title: Substitute simple regex patterns with Python
hero_image: images/banner.png
description: Replace character patterns with Python and regex
original_url:
theme: red #possible values: blue, green, navy, orange, red, turquoise, violet, yellow
duration: 1
listed: false
ingredient: true
copyedit: true
curriculum:
interests:
technologies: "regex, python"
site_areas:
steps:
-
title: Replacing patterns

1 change: 1 addition & 0 deletions ca-ES/solutions/.keep
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

46 changes: 46 additions & 0 deletions ca-ES/step_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
- You can find and replace simple patterns of characters using Python's `re` module.

- A simple pattern would be a single character or a sequence of characters, such as 'A' or 'cat'.

- First, import the `re` module in your script:

```python
import re
```

- Then create a simple string with which to experiment.

```python
import re
title = 'Harry Potter'
```

- Using `re.sub` you can change any character in the string. For instance, changing the `r` characters to `i` looks like this:

```python
new_title = re.sub('r', 'i', title)
print(new_title)
```
- This will give us `'Haiiy Pottei'`.

- You can also change sequences of characters:

```python
new_title = re.sub('rr', 'pp', title)
```

- Printing `new_title` will now give you `'Happy Potter'`.

- Of course, you can also substitute whole words.

```python
new_title = re.sub('Potter', 'Styles', title)
```

- You can also stop the substitution after a set number of replacements. So to only replace the first match, you can do this:

```python
new_title = re.sub('r', 'i', title, 1)
```

- This will make the `new_title` variable contain `'Hairy Potter'`.
13 changes: 13 additions & 0 deletions ca-ES/step_2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## What you will need

### Hardware

+ List hardware here, or delete section.

### Software

+ List software here, or delete section.

### Additional Resources

+ List additional resources, or delete section.
3 changes: 3 additions & 0 deletions ca-ES/step_3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## Step title

+ Step content...
18 changes: 18 additions & 0 deletions cs-CZ/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
title: Substitute simple regex patterns with Python
hero_image: images/banner.png
description: Replace character patterns with Python and regex
original_url:
theme: red #possible values: blue, green, navy, orange, red, turquoise, violet, yellow
duration: 1
listed: false
ingredient: true
copyedit: true
curriculum:
interests:
technologies: "regex, python"
site_areas:
steps:
-
title: Replacing patterns

1 change: 1 addition & 0 deletions cs-CZ/solutions/.keep
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

46 changes: 46 additions & 0 deletions cs-CZ/step_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
- You can find and replace simple patterns of characters using Python's `re` module.

- A simple pattern would be a single character or a sequence of characters, such as 'A' or 'cat'.

- First, import the `re` module in your script:

```python
import re
```

- Then create a simple string with which to experiment.

```python
import re
title = 'Harry Potter'
```

- Using `re.sub` you can change any character in the string. For instance, changing the `r` characters to `i` looks like this:

```python
new_title = re.sub('r', 'i', title)
print(new_title)
```
- This will give us `'Haiiy Pottei'`.

- You can also change sequences of characters:

```python
new_title = re.sub('rr', 'pp', title)
```

- Printing `new_title` will now give you `'Happy Potter'`.

- Of course, you can also substitute whole words.

```python
new_title = re.sub('Potter', 'Styles', title)
```

- You can also stop the substitution after a set number of replacements. So to only replace the first match, you can do this:

```python
new_title = re.sub('r', 'i', title, 1)
```

- This will make the `new_title` variable contain `'Hairy Potter'`.
13 changes: 13 additions & 0 deletions cs-CZ/step_2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## What you will need

### Hardware

+ List hardware here, or delete section.

### Software

+ List software here, or delete section.

### Additional Resources

+ List additional resources, or delete section.
3 changes: 3 additions & 0 deletions cs-CZ/step_3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## Step title

+ Step content...
18 changes: 18 additions & 0 deletions da-DK/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
title: Substitute simple regex patterns with Python
hero_image: images/banner.png
description: Replace character patterns with Python and regex
original_url:
theme: red #possible values: blue, green, navy, orange, red, turquoise, violet, yellow
duration: 1
listed: false
ingredient: true
copyedit: true
curriculum:
interests:
technologies: "regex, python"
site_areas:
steps:
-
title: Replacing patterns

1 change: 1 addition & 0 deletions da-DK/solutions/.keep
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Loading