Skip to content

Commit db42f2d

Browse files
updated links and descriptions
1 parent cdeef92 commit db42f2d

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

atom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
<li><a href="https://nostarch.com/blog/2022-holiday-gift-guide">NoStarch Press</a> — Holiday Gift Guide, 35% off until Nov 28</li>
9696
<li><a href="https://media.pragprog.com/newsletters/2022-11-18.html">The Pragmatic Bookshelf</a> — 40% off on all ebooks and audio books</li>
9797
<li><a href="https://deals.manning.com/thanksgiving/">Manning Publications</a> — save 50% when you buy 2 or more eBooks, liveProjects, or liveVideos</li>
98-
<li><a href="https://mailchi.mp/leanpub/weekly-sale-2022-nov-black-friday">Leanpub Weekly Sale</a> — offers for programming books, bundles and courses</li>
98+
<li><a href="https://mailchi.mp/leanpub/monthly-sale-2022-november-black-friday">Leanpub Monthly Sale</a> — offers for programming books, bundles and courses</li>
9999
<li><a href="https://realpython.com/giveaway/black-friday/">Real Python Giveaway</a> — a chance to win one of three prizes, until Nov 25</li>
100100
<li><a href="https://github.com/0x90n/InfoSec-Black-Friday">InfoSec Hack Friday</a> — InfoSec related software/tools</li>
101101
<li><a href="https://opsdisk.gumroad.com/l/cphlab/blackfriday2022">The Cyber Plumber's Lab Guide and Interactive Access</a> — 50% OFF</li>
@@ -1983,7 +1983,7 @@
19831983
<entry xml:lang="en">
19841984
<title>Python 3.11: possessive quantifiers and atomic grouping added to re module</title>
19851985
<published>2022-05-07T00:00:00+00:00</published>
1986-
<updated>2022-08-24T00:00:00+00:00</updated>
1986+
<updated>2022-11-25T00:00:00+00:00</updated>
19871987
<link rel="alternate" href="https://learnbyexample.github.io/python-regex-possessive-quantifier/" type="text/html"/>
19881988
<id>https://learnbyexample.github.io/python-regex-possessive-quantifier/</id>
19891989
<content type="html">&lt;p&gt;Quoting from &lt;a href=&quot;https:&#x2F;&#x2F;docs.python.org&#x2F;3.11&#x2F;whatsnew&#x2F;3.11.html&quot;&gt;What&#x27;s New In Python 3.11&lt;&#x2F;a&gt;:&lt;&#x2F;p&gt;
@@ -2021,7 +2021,7 @@
20212021
&lt;&#x2F;blockquote&gt;
20222022
&lt;br&gt;
20232023
&lt;h2 id=&quot;possessive-quantifiers&quot;&gt;Possessive quantifiers&lt;a class=&quot;zola-anchor&quot; href=&quot;#possessive-quantifiers&quot; aria-label=&quot;Anchor link for: possessive-quantifiers&quot;&gt;🔗&lt;&#x2F;a&gt;&lt;&#x2F;h2&gt;
2024-
&lt;p&gt;Until Python 3.10, you had to use alternatives like the third-party &lt;a href=&quot;https:&#x2F;&#x2F;pypi.org&#x2F;project&#x2F;regex&#x2F;&quot;&gt;regex module&lt;&#x2F;a&gt; for possessive quantifiers. The &lt;code&gt;re&lt;&#x2F;code&gt; module supports possessive quantifiers from Python 3.11 version. This version is currently under development, see &lt;a href=&quot;https:&#x2F;&#x2F;www.python.org&#x2F;download&#x2F;pre-releases&#x2F;&quot;&gt;Pre-release&lt;&#x2F;a&gt; page on the Python site for download links and other details.&lt;&#x2F;p&gt;
2024+
&lt;p&gt;Until Python 3.10, you had to use alternatives like the third-party &lt;a href=&quot;https:&#x2F;&#x2F;pypi.org&#x2F;project&#x2F;regex&#x2F;&quot;&gt;regex module&lt;&#x2F;a&gt; for possessive quantifiers. The &lt;code&gt;re&lt;&#x2F;code&gt; module supports possessive quantifiers from Python 3.11 version.&lt;&#x2F;p&gt;
20252025
&lt;p&gt;The difference between greedy and possessive quantifiers is that possessive will not backtrack to find a match. In other words, possessive quantifiers will always consume every character that matches the pattern on which it is applied. Syntax wise, you need to append &lt;code&gt;+&lt;&#x2F;code&gt; to greedy quantifiers to make it possessive, similar to adding &lt;code&gt;?&lt;&#x2F;code&gt; for non-greedy case.&lt;&#x2F;p&gt;
20262026
&lt;p&gt;Unlike greedy or non-greedy quantifiers, &lt;code&gt;:.*+apple&lt;&#x2F;code&gt; will never match, because &lt;code&gt;.*+&lt;&#x2F;code&gt; will consume rest of the line, leaving no way to match &lt;code&gt;apple&lt;&#x2F;code&gt;.&lt;&#x2F;p&gt;
20272027
&lt;pre data-lang=&quot;python&quot; style=&quot;background-color:#f5f5f5;color:#1f1f1f;&quot; class=&quot;language-python &quot;&gt;&lt;code class=&quot;language-python&quot; data-lang=&quot;python&quot;&gt;&lt;span&gt;$ python3&lt;&#x2F;span&gt;&lt;span style=&quot;color:#b3933a;&quot;&gt;.11 &lt;&#x2F;span&gt;&lt;span style=&quot;color:#72ab00;&quot;&gt;-&lt;&#x2F;span&gt;&lt;span&gt;q

0 commit comments

Comments
 (0)