<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.dotnetzone.gr:443/cs/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>HowTo: Extract numeric suffix from a string in Python</title><link>https://www.dotnetzone.gr:443/cs/blogs/birbilis/archive/2020/08/24/howto-extract-numeric-suffix-from-a-string-in-python.aspx</link><description>I recently needed to extract a numeric suffix from a string value in Python. Initially I did the following: import re def extractNumSuffix(value): &amp;#160;&amp;#160;&amp;#160; return (None if (search:=re.search(&amp;#8216;^\D*(\d+)$&amp;#8217;, value, re.IGNORECASE)) is</description><dc:language>el</dc:language><generator>CommunityServer 2.1 SP3 (Build: 20423.1)</generator></channel></rss>