<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Announcing list2regexp - Generate regular expressions to match lists of strings]]></title><description><![CDATA[<em>This post did not contain any content.</em>

<div class="row mt-3"><div class="card col-md-9 col-lg-6 position-relative link-preview p-0">



<a href="https://codeberg.org/tslocum/list2regexp" title="list2regexp">
<img src="https://codeberg.org/tslocum/list2regexp/-/summary-card" class="card-img-top not-responsive" style="max-height: 15rem;" alt="Link Preview Image" onerror="this.parentElement.remove()" />
</a>



<div class="card-body">
<h5 class="card-title">
<a class="text-decoration-none" href="https://codeberg.org/tslocum/list2regexp">
list2regexp
</a>
</h5>
<p class="card-text line-clamp-3">list2regexp - Generate regular expressions to match lists of strings</p>
</div>
<a href="https://codeberg.org/tslocum/list2regexp" class="card-footer text-body-secondary small d-flex gap-2 align-items-center lh-2">



<img src="https://codeberg.org/assets/img/favicon.svg" alt="favicon" class="not-responsive overflow-hiddden" style="max-width: 21px; max-height: 21px;" onerror="this.remove()"/>



<p class="d-inline-block text-truncate mb-0">Codeberg.org <span class="text-secondary">(codeberg.org)</span></p>
</a>
</div></div>]]></description><link>https://citiverse.it/topic/4eb1fe39-e3a1-4477-951f-5d23023ca5ab/announcing-list2regexp-generate-regular-expressions-to-match-lists-of-strings</link><generator>RSS for Node</generator><lastBuildDate>Sat, 26 Sep 2026 05:31:20 GMT</lastBuildDate><atom:link href="https://citiverse.it/topic/4eb1fe39-e3a1-4477-951f-5d23023ca5ab.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 17 Sep 2026 19:20:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Announcing list2regexp - Generate regular expressions to match lists of strings on Thu, 17 Sep 2026 19:21:10 GMT]]></title><description><![CDATA[<p dir="auto">Here is an example. Given the following list of strings:</p>
<pre><code>1.2.3.4
127.0.0.1
127.0.0.2
127.0.0.11
128.0.0.1
125.0.0.*
200.0.0.1
2001:0db8:85a3:0000:0000:8a2e:0370:1300
2001:0db8:85a3:0000:0000:8a2e:0370:1330
2001:0db8:85a3:0000:0000:8a2e:0370:1337
あいうえお
あいうえこ
😃😁😆😐
😃😁😆
😃😁🤣
</code></pre>
<p dir="auto">list2regexp will return the following pattern:</p>
<pre><code>^(?:1(?:(?:\.(?:2(?:\.(?:3(?:\.(?:4))))))|(?:2(?:(?:5(?:\.(?:0(?:\.(?:0(?:\.(?:.*)))))))|(?:7(?:\.(?:0(?:\.(?:0(?:\.(?:(?:1(?:|(?:1)))|(?:2))))))))|(?:8(?:\.(?:0(?:\.(?:0(?:\.(?:1)))))))))))|(?:2(?:0(?:0(?:(?:\.(?:0(?:\.(?:0(?:\.(?:1))))))|(?:1(?::(?:0(?:d(?:b(?:8(?::(?:8(?:5(?:a(?:3(?::(?:0(?:0(?:0(?:0(?::(?:0(?:0(?:0(?:0(?::(?:8(?:a(?:2(?:e(?::(?:0(?:3(?:7(?:0(?::(?:1(?:3(?:(?:0(?:0))|(?:3(?:(?:0|7))))))))))))))))))))))))))))))))))))))))))|(?:あ(?:い(?:う(?:え(?:(?:お|こ))))))|(?:😃(?:😁(?:(?:😆(?:|(?:😐)))|(?:🤣))))$
</code></pre>
]]></description><link>https://citiverse.it/post/https://lemmy.ml/comment/27860607</link><guid isPermaLink="true">https://citiverse.it/post/https://lemmy.ml/comment/27860607</guid><dc:creator><![CDATA[trevor@lemmy.ml]]></dc:creator><pubDate>Thu, 17 Sep 2026 19:21:10 GMT</pubDate></item></channel></rss>