You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: py_regex.md
+13-9Lines changed: 13 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,7 @@ Resources mentioned in Acknowledgements section above are available under origin
65
65
66
66
## Book version
67
67
68
-
4.0
68
+
4.1
69
69
70
70
See [Version_changes.md](https://github.com/learnbyexample/py_regular_expressions/blob/master/Version_changes.md) to track changes across book versions.
71
71
@@ -312,7 +312,7 @@ False
312
312
313
313
## re(gex)? playground
314
314
315
-
To make it easier to experiment, I'm working on an interactive app. See [PyRegexPlayground](https://github.com/learnbyexample/TUI-apps/tree/main/PyRegexPlayground) repo for installation instructions and usage guide. A sample screenshot is shown below:
315
+
To make it easier to experiment, I wrote an interactive TUI app. See [PyRegexPlayground](https://github.com/learnbyexample/TUI-apps/tree/main/PyRegexPlayground) repo for installation instructions and usage guide. A sample screenshot is shown below:
**c)** For the given input list, filter all elements that contain `42` surrounded by word characters.
750
750
751
751
```ruby
752
-
>>> words = ['hi42bye', 'nice1423', 'bad42', 'cool_42a', 'fake42', '_42_']
752
+
>>> words = ['hi42bye', 'nice1423', 'bad42', 'cool_42a', '42fake', '_42_']
753
753
754
754
>>> [w for w in words if re.search()] ##### add your solution here
755
755
['hi42bye', 'nice1423', 'cool_42a', '_42_']
@@ -1891,19 +1891,23 @@ The below image is a screenshot from this link — [debuggex: `r'\bpar(en|ro)?t\
1891
1891
1892
1892
## re(gex)? playground
1893
1893
1894
-
As already mentioned in the introduction chapter, I'm also working on an interactive app. See [PyRegexPlayground](https://github.com/learnbyexample/TUI-apps/tree/main/PyRegexPlayground) repo for installation instructions and usage guide.
1894
+
As already mentioned in the introduction chapter, I wrote an interactive TUI app for interactive practice. See [PyRegexPlayground](https://github.com/learnbyexample/TUI-apps/tree/main/PyRegexPlayground) repo for installation instructions and usage guide.
1895
1895
1896
-
## regexcrossword
1896
+
## re(gex)? exercises
1897
1897
1898
-
For practice, [regexcrossword](https://regexcrossword.com/) is often recommended. It only supports JavaScript, so some of the puzzles may not work the same with Python syntax. See [regexcrossword: howtoplay](https://regexcrossword.com/howtoplay) for help.
1898
+
I wrote another TUI app to help you solve exercises from this book interactively. See [PyRegexExercises](https://github.com/learnbyexample/TUI-apps/tree/main/PyRegexExercises) repo for installation steps and [app_guide.md](https://github.com/learnbyexample/TUI-apps/blob/main/PyRegexExercises/app_guide.md) for instructions on using this app.
1899
+
1900
+
Here's a sample screenshot:
1899
1901
1900
-
The below image is a screenshot from this link — [regexcrossword: tutorial puzzle 5](https://regexcrossword.com/challenges/tutorial/puzzles/5)
For practice, [regexcrossword](https://regexcrossword.com/) is often recommended. It only supports JavaScript, so some of the puzzles may not work the same with Python syntax. See [regexcrossword: howtoplay](https://regexcrossword.com/howtoplay) for help.
1903
1907
1904
1908
## Summary
1905
1909
1906
-
This chapter briefly presented three online tools that can help you with understanding and interactively solving/debugging regular expressions. Syntax and features can vary, sometimes significantly, between various tools and programming languages. So, ensure that the program you are using supports the flavor of regular expressions you are using.
1910
+
This chapter briefly presented tools that can help you with understanding and interactively solving/debugging regular expressions. Syntax and features can vary, sometimes significantly, between various tools and programming languages. So, ensure that the program you are using supports the flavor of regular expressions you are using.
0 commit comments