-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathindex.html
1 lines (1 loc) Β· 12.4 KB
/
index.html
1
<!doctype html><html lang=en><head><meta content="IE=edge" http-equiv=X-UA-Compatible><meta content="text/html; charset=utf-8" http-equiv=content-type><meta content="width=device-width,initial-scale=1.0,maximum-scale=1" name=viewport><title>Understanding Python re(gex)? book announcement</title><link href=https://learnbyexample.github.io/atom.xml rel=alternate title=RSS type=application/atom+xml><script src=https://cdnjs.cloudflare.com/ajax/libs/slideout/1.0.1/slideout.min.js></script><link href=https://learnbyexample.github.io/site.css rel=stylesheet><meta content="Understanding Python re(gex)? book announcement" property=og:title><meta content=website property=og:type><meta content="Learn Python Regular Expressions step-by-step from beginner to advanced levels with hundreds of examples and exercises." property=og:description><meta content=https://learnbyexample.github.io/understanding-python-regex-announcement/ property=og:url><meta content=https://raw.githubusercontent.com/learnbyexample/py_regular_expressions/master/images/py_regex_ls.png property=og:image><meta content=1280 property=og:image:width><meta content=720 property=og:image:height><meta content=summary_large_image property=twitter:card><meta content=@learn_byexample property=twitter:site><link href=https://learnbyexample.github.io/favicon.svg rel=icon><link rel="shortcut icon" href=https://learnbyexample.github.io/favicon.png><body><div class=container><div class=mobile-navbar id=mobile-navbar><div class=mobile-header-logo><a class=logo href=/>learnbyexample</a></div><div class="mobile-navbar-icon icon-out"><span></span><span></span><span></span></div></div><nav class="mobile-menu slideout-menu slideout-menu-left" id=mobile-menu><ul class=mobile-menu-list><li class=mobile-menu-item><a href=https://learnbyexample.github.io/books> Books </a><li class=mobile-menu-item><a href=https://learnbyexample.github.io/mini> Mini </a><li class=mobile-menu-item><a href=https://learnbyexample.github.io/tips> Tips </a><li class=mobile-menu-item><a href=https://learnbyexample.github.io/tags> Tags </a><li class=mobile-menu-item><a href=https://learnbyexample.github.io/about> About </a></ul></nav><header id=header><div class=logo><a href=https://learnbyexample.github.io>learnbyexample</a></div><nav class=menu><ul><li><a href=https://learnbyexample.github.io/books> Books </a><li><a href=https://learnbyexample.github.io/mini> Mini </a><li><a href=https://learnbyexample.github.io/tips> Tips </a><li><a href=https://learnbyexample.github.io/tags> Tags </a><li><a href=https://learnbyexample.github.io/about> About </a></ul></nav></header><main><div class=content id=mobile-panel><div class=post-toc id=post-toc><h2 class=post-toc-title>Contents</h2><div class="post-toc-content always-active"><nav id=TableOfContents><ul><li><a class=toc-link href=https://learnbyexample.github.io/understanding-python-regex-announcement/#release-offers>Release offers</a><li><a class=toc-link href=https://learnbyexample.github.io/understanding-python-regex-announcement/#what-s-new>What's new?</a><li><a class=toc-link href=https://learnbyexample.github.io/understanding-python-regex-announcement/#videos>Videos</a><li><a class=toc-link href=https://learnbyexample.github.io/understanding-python-regex-announcement/#re-gex-playground>re(gex)? playground</a><li><a class=toc-link href=https://learnbyexample.github.io/understanding-python-regex-announcement/#re-gex-exercises>re(gex)? exercises</a><li><a class=toc-link href=https://learnbyexample.github.io/understanding-python-regex-announcement/#table-of-contents>Table of Contents</a><li><a class=toc-link href=https://learnbyexample.github.io/understanding-python-regex-announcement/#web-version>Web version</a><li><a class=toc-link href=https://learnbyexample.github.io/understanding-python-regex-announcement/#github-repo>GitHub repo</a><li><a class=toc-link href=https://learnbyexample.github.io/understanding-python-regex-announcement/#newsletter>Newsletter</a><li><a class=toc-link href=https://learnbyexample.github.io/understanding-python-regex-announcement/#feedback-and-errata>Feedback and Errata</a></ul></nav></div></div><article class=post><header class=post__header><h1 class=post__title><a href=https://learnbyexample.github.io/understanding-python-regex-announcement/>Understanding Python re(gex)? book announcement</a></h1><div class=post__meta><span class=post__time>2025-01-22</span></div></header><div class=post-content><p>Hello!<p>I just published a new version of my <strong>Understanding Python re(gex)?</strong> ebook.<p>This book will help you learn Python Regular Expressions step-by-step from beginner to advanced levels with <strong>hundreds of examples and exercises</strong>. The standard library <code>re</code> as well as the third-party <code>regex</code> module are covered in this book.</p><span id=continue-reading></span><br><h2 id=release-offers>Release offers<a aria-label="Anchor link for: release-offers" class=zola-anchor href=#release-offers>π</a></h2><p>To celebrate the new release, you can download the PDF/EPUB versions of <strong>Understanding Python re(gex)?</strong> for FREE till 31-Jan-2025.<ul><li><a href=https://leanpub.com/py_regex/c/free>Leanpub</a><li><a href=https://learnbyexample.gumroad.com/l/py_regex/free>Gumroad</a></ul><p>Here are some more amazing offers:<ul><li><strong>All 13 books bundle</strong> is $18 (normal price $36) β <a href=https://leanpub.com/b/learnbyexample-all-books/c/half_price>Leanpub</a> or <a href=https://learnbyexample.gumroad.com/l/all-books/HalfPrice>Gumroad</a><li><strong>100 Page Python Intro</strong> is FREE (normal price $10) β <a href=https://leanpub.com/100pagepythonintro/c/free>Leanpub</a> or <a href=https://learnbyexample.gumroad.com/l/100pagepythonintro/free>Gumroad</a></ul><blockquote><p><img alt=info src=/images/info.svg> See also <a href=https://learnbyexample.github.io/customizing-pandoc/>my blog post</a> on how to customize <code>pandoc</code> for generating beautiful PDF/EPUB versions from GitHub style markdown.</blockquote><br><h2 id=what-s-new>What's new?<a aria-label="Anchor link for: what-s-new" class=zola-anchor href=#what-s-new>π</a></h2><ul><li>Python version updated to 3.13 <ul><li>deprecated features, SyntaxWarning, name change from <code>re.error</code> to <code>re.PatternError</code></ul><li>Corrected typos, updated descriptions, timing results and external links<li>Exercises are now numbered instead of using alphabets</ul><br><h2 id=videos>Videos<a aria-label="Anchor link for: videos" class=zola-anchor href=#videos>π</a></h2><p align=center><iframe allow="accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture" title="YouTube video player" allowfullscreen frameborder=0 height=315 loading=lazy src=https://www.youtube.com/embed/2x2n7ynamm8 width=560></iframe><p>Check out my <a href=https://learnbyexample.github.io/tips/>programming tips</a> covering Python, command line tools and Vim:<ul><li><a href="https://www.youtube.com/playlist?list=PLTv2U3HnAL4PlFDiH3FXTHXRbhWs2sB3F">Python tips</a><li><a href="https://www.youtube.com/playlist?list=PLTv2U3HnAL4PNTmRqZBSUgKaiHbRL2zeY">Linux command line tips</a><li><a href="https://www.youtube.com/playlist?list=PLTv2U3HnAL4NN2tK-59ZiNBm-o64-Yvos">Vim tips</a></ul><br><h2 id=re-gex-playground>re(gex)? playground<a aria-label="Anchor link for: re-gex-playground" class=zola-anchor href=#re-gex-playground>π</a></h2><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 align=center><img alt="Sample screenshot from the Playground screen" loading=lazy src=https://raw.githubusercontent.com/learnbyexample/TUI-apps/main/PyRegexPlayground/pyregex_finditer.png></p><br><h2 id=re-gex-exercises>re(gex)? exercises<a aria-label="Anchor link for: re-gex-exercises" class=zola-anchor href=#re-gex-exercises>π</a></h2><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 align=center><img alt="Sample screenshot for Python regex exercises" loading=lazy src=https://raw.githubusercontent.com/learnbyexample/TUI-apps/main/PyRegexExercises/pyregex_exercises.png><p>See my blog post <a href=https://learnbyexample.github.io/python-regex-cheatsheet/>Python regex cheatsheet</a> for a quick reference.</p><br><h2 id=table-of-contents>Table of Contents<a aria-label="Anchor link for: table-of-contents" class=zola-anchor href=#table-of-contents>π</a></h2><ol><li>Preface<li>Why is it needed?<li>re introduction<li>Anchors<li>Alternation and Grouping<li>Escaping metacharacters<li>Dot metacharacter and Quantifiers<li>Interlude: Tools for debugging and visualization<li>Working with matched portions<li>Character class<li>Groupings and backreferences<li>Interlude: Common tasks<li>Lookarounds<li>Flags<li>Unicode<li>regex module<li>Gotchas<li>Further Reading</ol><br><h2 id=web-version>Web version<a aria-label="Anchor link for: web-version" class=zola-anchor href=#web-version>π</a></h2><p>You can read the book online here: <a href=https://learnbyexample.github.io/py_regular_expressions/>https://learnbyexample.github.io/py_regular_expressions/</a></p><br><h2 id=github-repo>GitHub repo<a aria-label="Anchor link for: github-repo" class=zola-anchor href=#github-repo>π</a></h2><p>Visit <a href=https://github.com/learnbyexample/py_regular_expressions>https://github.com/learnbyexample/py_regular_expressions</a> for markdown source, example files, exercise solutions, sample chapters and other details related to the book.</p><br><h2 id=newsletter>Newsletter<a aria-label="Anchor link for: newsletter" class=zola-anchor href=#newsletter>π</a></h2><p>Subscribe to <a href=https://learnbyexample.gumroad.com/l/learnbyexample-weekly>learnbyexample weekly</a> β free newsletter covering programming resources, updates on what I am creating, tools, free ebooks and more, delivered every Friday.</p><br><h2 id=feedback-and-errata>Feedback and Errata<a aria-label="Anchor link for: feedback-and-errata" class=zola-anchor href=#feedback-and-errata>π</a></h2><p>I would highly appreciate it if you'd <strong>let me know how you felt about this book</strong>. It could be anything from a simple thank you, rating/review, pointing out a typo, mistakes in code snippets, which aspects of the book worked for you (or didn't!) and so on. Reader feedback is essential and especially so for self-published authors.<p>You can reach me via:<ul><li>Issue Manager: <a href=https://github.com/learnbyexample/py_regular_expressions/issues>https://github.com/learnbyexample/py_regular_expressions/issues</a><li>E-mail: <code>learn by example.net@gmail.com</code> (without the spaces)<li>Twitter: <a href=https://twitter.com/learn_byexample>https://twitter.com/learn_byexample</a></ul><p>Happy learning :)</div><div class=post-footer><div class=post-tags><a href=https://learnbyexample.github.io/tags/python/>#python</a><a href=https://learnbyexample.github.io/tags/regular-expressions/>#regular-expressions</a><a href=https://learnbyexample.github.io/tags/ebook/>#ebook</a><a href=https://learnbyexample.github.io/tags/re-module/>#re-module</a><a href=https://learnbyexample.github.io/tags/regex-module/>#regex-module</a></div><hr color=#e6e6e6><div class=post-nav><p><a class=previous href=https://learnbyexample.github.io/awk-idioms-explained/>β awk idioms explained</a><br><p><a class=next href=https://learnbyexample.github.io/coloring-matched-portions-grep-sed-awk/>Coloring matched portions with GNU grep, sed and awk β</a><br></div><hr color=#e6e6e6><p>π° Use <a href=https://learnbyexample.github.io/atom.xml>this link</a> for the Atom feed. <br> β
Follow me on <a href=https://twitter.com/learn_byexample>Twitter</a>, <a href=https://github.com/learnbyexample>GitHub</a> and <a href=https://www.youtube.com/c/learnbyexample42>Youtube</a> for interesting tech nuggets. <br> π§ Subscribe to <a href=https://learnbyexample.gumroad.com/l/learnbyexample-weekly>learnbyexample weekly</a> for programming resources, tips, tools, free ebooks and more (free newsletter, delivered every Friday).<hr color=#e6e6e6></div></article></div></main></div><script src=https://learnbyexample.github.io/even.js></script>