|
5 | 5 | <link href="https://learnbyexample.github.io/atom.xml" rel="self" type="application/atom+xml"/>
|
6 | 6 | <link href="https://learnbyexample.github.io"/>
|
7 | 7 | <generator uri="https://www.getzola.org/">Zola</generator>
|
8 |
| - <updated>2023-10-04T00:00:00+00:00</updated> |
| 8 | + <updated>2023-10-12T00:00:00+00:00</updated> |
9 | 9 | <id>https://learnbyexample.github.io/atom.xml</id>
|
10 | 10 | <entry xml:lang="en">
|
11 | 11 | <title>Perl One-Liners Guide book announcement</title>
|
|
2319 | 2319 | <entry xml:lang="en">
|
2320 | 2320 | <title>Understanding Python re(gex)? book announcement</title>
|
2321 | 2321 | <published>2023-01-30T00:00:00+00:00</published>
|
2322 |
| - <updated>2023-01-31T00:00:00+00:00</updated> |
| 2322 | + <updated>2023-10-12T00:00:00+00:00</updated> |
2323 | 2323 | <link rel="alternate" href="https://learnbyexample.github.io/understanding-python-regex-announcement/" type="text/html"/>
|
2324 | 2324 | <id>https://learnbyexample.github.io/understanding-python-regex-announcement/</id>
|
2325 | 2325 | <content type="html"><p>Hello!</p>
|
|
2372 | 2372 | </ul>
|
2373 | 2373 | <br>
|
2374 | 2374 | <h2 id="re-gex-playground">re(gex)? playground<a class="zola-anchor" href="#re-gex-playground" aria-label="Anchor link for: re-gex-playground">🔗</a></h2>
|
2375 |
| -<p>To make it easier to experiment, I'm working on an interactive app. See <a href="https://github.com/learnbyexample/TUI-apps/tree/main/PyRegexPlayground">PyRegexPlayground</a> repo for installation instructions and usage guide. A sample screenshot is shown below:</p> |
| 2375 | +<p>To make it easier to experiment, I wrote on an interactive app. See <a href="https://github.com/learnbyexample/TUI-apps/tree/main/PyRegexPlayground">PyRegexPlayground</a> repo for installation instructions and usage guide. A sample screenshot is shown below:</p> |
2376 | 2376 | <p align="center"><img src="https://raw.githubusercontent.com/learnbyexample/TUI-apps/main/PyRegexPlayground/pyregex_finditer.png" alt="Sample screenshot from the Playground screen" loading="lazy" /></p>
|
2377 | 2377 | <br>
|
| 2378 | +<h2 id="re-gex-exercises">re(gex)? exercises<a class="zola-anchor" href="#re-gex-exercises" aria-label="Anchor link for: re-gex-exercises">🔗</a></h2> |
| 2379 | +<p>I wrote another TUI app to help you solve exercises from this book interactively. See <a href="https://github.com/learnbyexample/TUI-apps/tree/main/PyRegexExercises">PyRegexExercises</a> repo for installation steps and <a href="https://github.com/learnbyexample/TUI-apps/blob/main/PyRegexExercises/app_guide.md">app_guide.md</a> for instructions on using this app. Here's a sample screenshot:</p> |
| 2380 | +<p align="center"><img src="https://raw.githubusercontent.com/learnbyexample/TUI-apps/main/PyRegexExercises/pyregex_exercises.png" alt="Sample screenshot for Python regex exercises" loading="lazy" /></p> |
| 2381 | +<br> |
2378 | 2382 | <h2 id="table-of-contents">Table of Contents<a class="zola-anchor" href="#table-of-contents" aria-label="Anchor link for: table-of-contents">🔗</a></h2>
|
2379 | 2383 | <ol>
|
2380 | 2384 | <li>Preface</li>
|
@@ -9145,7 +9149,7 @@ no VAL is specified, the key will be given the value true.</p>
|
9145 | 9149 | <entry xml:lang="en">
|
9146 | 9150 | <title>Python regular expression cheatsheet and examples</title>
|
9147 | 9151 | <published>2020-07-03T00:00:00+00:00</published>
|
9148 |
| - <updated>2023-06-13T00:00:00+00:00</updated> |
| 9152 | + <updated>2023-10-12T00:00:00+00:00</updated> |
9149 | 9153 | <link rel="alternate" href="https://learnbyexample.github.io/python-regex-cheatsheet/" type="text/html"/>
|
9150 | 9154 | <id>https://learnbyexample.github.io/python-regex-cheatsheet/</id>
|
9151 | 9155 | <content type="html"><p align="center"><img src="/images/books/pyregex_example.png" alt="pyregex example" /></p>
|
@@ -9299,7 +9303,7 @@ no VAL is specified, the key will be given the value true.</p>
|
9299 | 9303 | <h2 id="regular-expression-examples">Regular expression examples<a class="zola-anchor" href="#regular-expression-examples" aria-label="Anchor link for: regular-expression-examples">🔗</a></h2>
|
9300 | 9304 | <p>As a good practice, always use <strong>raw strings</strong> to construct RE, unless other formats are required. This will avoid conflict between special meaning of the backslash character in RE and string literals.</p>
|
9301 | 9305 | <blockquote>
|
9302 |
| -<p><img src="/images/info.svg" alt="info" /> I'm working on an interactive app to help you experiment with the examples presented below. See <a href="https://github.com/learnbyexample/TUI-apps/tree/main/PyRegexPlayground">PyRegexPlayground</a> repo for installation instructions and usage guide.</p> |
| 9306 | +<p><img src="/images/info.svg" alt="info" /> I wrote an interactive TUI app to help you experiment with the examples presented below. See <a href="https://github.com/learnbyexample/TUI-apps/tree/main/PyRegexPlayground">PyRegexPlayground</a> repo for installation instructions and usage guide. See <a href="https://github.com/learnbyexample/TUI-apps/tree/main/PyRegexExercises">PyRegexExercises</a> repo for a TUI app with 100+ Python regex exercises.</p> |
9303 | 9307 | </blockquote>
|
9304 | 9308 | <ul>
|
9305 | 9309 | <li>examples for <code>re.search()</code></li>
|
@@ -9554,7 +9558,7 @@ no VAL is specified, the key will be given the value true.</p>
|
9554 | 9558 | </span></code></pre>
|
9555 | 9559 | <br>
|
9556 | 9560 | <h2 id="understanding-python-re-gex-book">Understanding Python re(gex)? book<a class="zola-anchor" href="#understanding-python-re-gex-book" aria-label="Anchor link for: understanding-python-re-gex-book">🔗</a></h2>
|
9557 |
| -<p>Visit my GitHub repo <a href="https://github.com/learnbyexample/py_regular_expressions">Understanding Python re(gex)?</a> for details about the book I wrote on Python regular expressions. The book uses plenty of examples to explain the concepts from the basics and introduces more advanced concepts step-by-step. The book also covers the <a href="https://pypi.org/project/regex/">third-party regex module</a>. The cheatsheet and examples presented in this post are based on contents of this book.</p> |
| 9561 | +<p>Visit my GitHub repo <a href="https://github.com/learnbyexample/py_regular_expressions">Understanding Python re(gex)?</a> for details about the book I wrote on Python regular expressions. The book uses plenty of examples to explain the concepts from the basics and introduces more advanced concepts step-by-step. The book also covers the <a href="https://pypi.org/project/regex/">third-party regex module</a>. The cheatsheet and examples presented in this post are based on the contents of this book.</p> |
9558 | 9562 | <p align="center"><img src="https://raw.githubusercontent.com/learnbyexample/py_regular_expressions/master/images/py_regex_ls.png" width="640px" height="360px" alt="Understanding Python re(gex)? cover image" loading="lazy" /></p>
|
9559 | 9563 | </content>
|
9560 | 9564 | </entry>
|
|
0 commit comments