techhub.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A hub primarily for passionate technologists, but everyone is welcome

Administered by:

Server stats:

4.6K
active users

#regularexpressions

0 posts0 participants0 posts today
HackerNoon<p>Alternative to regex. String matching and parsing, find and parse files. <a href="https://hackernoon.com/regex-is-a-70-year-old-dinosaurheres-the-modern-alternative" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">hackernoon.com/regex-is-a-70-y</span><span class="invisible">ear-old-dinosaurheres-the-modern-alternative</span></a> <a href="https://mas.to/tags/regularexpressions" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>regularexpressions</span></a></p>
Alvin Ashcraft<p>Using Regular Expressions (Regex) in SQL Server 2025: A Complete Guide. <a href="https://buff.ly/9aghJ03" rel="nofollow noopener" target="_blank">buff.ly/9aghJ03</a> <a class="hashtag" rel="nofollow noopener" href="https://bsky.app/search?q=%23regex" target="_blank">#regex</a> <a class="hashtag" rel="nofollow noopener" href="https://bsky.app/search?q=%23sqlserver" target="_blank">#sqlserver</a> <a class="hashtag" rel="nofollow noopener" href="https://bsky.app/search?q=%23database" target="_blank">#database</a> <a class="hashtag" rel="nofollow noopener" href="https://bsky.app/search?q=%23sql" target="_blank">#sql</a> <a class="hashtag" rel="nofollow noopener" href="https://bsky.app/search?q=%23regularexpressions" target="_blank">#regularexpressions</a><br><br><a href="https://buff.ly/9aghJ03" rel="nofollow noopener" target="_blank">Using Regular Expressions (Reg...</a></p>
Alvin Ashcraft 🐿️<p>Using Regular Expressions (Regex) in SQL Server 2025: A Complete Guide.</p><p><a href="https://www.red-gate.com/simple-talk/featured/using-regex-in-sql-server-2025-complete-guide/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">red-gate.com/simple-talk/featu</span><span class="invisible">red/using-regex-in-sql-server-2025-complete-guide/</span></a> </p><p><a href="https://hachyderm.io/tags/regex" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>regex</span></a> <a href="https://hachyderm.io/tags/sqlserver" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>sqlserver</span></a> <a href="https://hachyderm.io/tags/database" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>database</span></a> <a href="https://hachyderm.io/tags/sql" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>sql</span></a> <a href="https://hachyderm.io/tags/regularexpressions" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>regularexpressions</span></a></p>
Paul McGuire<p>I got less traffic for my Python article than I expected, so I added "Python" to the title, and inserted some section headers to break things up a bit, and make the flow of my thinking a bit clearer.</p><p>I was pretty happy with how this project turned out. This decorator makes the re.sub function simpler to work with. The decorator simplifies the re.sub API, wrapping your own function that takes in strings and returns a string. <a href="https://medium.com/@ptmcg/re-sub-as-a-decorator-madness-717eea7ded50" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">medium.com/@ptmcg/re-sub-as-a-</span><span class="invisible">decorator-madness-717eea7ded50</span></a> <a href="https://fosstodon.org/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> <a href="https://fosstodon.org/tags/decorators" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>decorators</span></a> <a href="https://fosstodon.org/tags/regularexpressions" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>regularexpressions</span></a></p>
Jeff Fortin T. (風の庭園のNekohayo)<p>I wanted to append a prefix to the beginning of the contents of a bunch of cells in <a href="https://mastodon.social/tags/LibreOffice" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>LibreOffice</span></a> Calc, and the "simplest" way I found to do that today (from what I saw as recommendations in forums like StackOverflow and Reddit)… was to use regexes 🤮</p><p>So, to prefix the contents, I searched for:<br>^(.)</p><p>…and replaced by:<br>The string you want to add as a prefix $1</p><p>I feel dirty.</p><p><a href="https://mastodon.social/tags/regex" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>regex</span></a> <a href="https://mastodon.social/tags/RegularExpressions" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RegularExpressions</span></a> <a href="https://mastodon.social/tags/spreadsheets" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>spreadsheets</span></a></p>
benda<p><a href="https://kolektiva.social/tags/fedihelp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>fedihelp</span></a> <a href="https://kolektiva.social/tags/javascript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>javascript</span></a> <a href="https://kolektiva.social/tags/regex" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>regex</span></a> <a href="https://kolektiva.social/tags/regularexpressions" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>regularexpressions</span></a> </p><p>someone please help me understand how this /regex/d bit of code works (links to a better resource than f'ing w3s also satisfactory).</p><p><a href="https://www.w3schools.com/js/tryit.asp?filename=tryjs_regexp_indices" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">w3schools.com/js/tryit.asp?fil</span><span class="invisible">ename=tryjs_regexp_indices</span></a></p><p>why does it not return, for example, "aaaabb"?</p>
Princess Serena Star ✨<p><span>How do I use regular expressions to mute specific terms without muting them if they're just part of a word?<br>So like, in a stupid example:<br>I want to block "lol" but not "testloltest"<br></span><a href="https://mk.absturztau.be/tags/regularexpressions" rel="nofollow noopener" target="_blank">#regularexpressions</a> <a href="https://mk.absturztau.be/tags/regularexpression" rel="nofollow noopener" target="_blank">#regularexpression</a> <a href="https://mk.absturztau.be/tags/sharkey" rel="nofollow noopener" target="_blank">#sharkey</a> <a href="https://mk.absturztau.be/tags/misskey" rel="nofollow noopener" target="_blank">#misskey</a> <a href="https://mk.absturztau.be/tags/wordmute" rel="nofollow noopener" target="_blank">#wordmute</a></p>
robrich<p><a href="https://dev.to/odunayoo_/regex-an-intro-5fkd" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">dev.to/odunayoo_/regex-an-intr</span><span class="invisible">o-5fkd</span></a> - A cool introduction to <a href="https://hachyderm.io/tags/RegularExpressions" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RegularExpressions</span></a> in <a href="https://hachyderm.io/tags/JavaScript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>JavaScript</span></a>. Nice walk-throughs <a href="https://github.com/OdunayoOkebunmi" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">github.com/OdunayoOkebunmi</span><span class="invisible"></span></a>.</p>
Dev Leader<p>What are some of the ways we can customize regex in CSharp?</p><p>Read more here:<br><a href="https://www.devleader.ca/2024/04/01/regex-options-in-csharp-beginners-guide-to-powerful-pattern-matching/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">devleader.ca/2024/04/01/regex-</span><span class="invisible">options-in-csharp-beginners-guide-to-powerful-pattern-matching/</span></a></p><p><a href="https://hachyderm.io/tags/CSharp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CSharp</span></a> <a href="https://hachyderm.io/tags/DotNet" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DotNet</span></a> <a href="https://hachyderm.io/tags/Regex" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Regex</span></a> <a href="https://hachyderm.io/tags/RegularExpressions" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RegularExpressions</span></a></p>
Dev Leader<p>Want to learn how to use regular expressions in CSharp?</p><p>Read more here:<br><a href="https://www.devleader.ca/2024/04/02/regular-expressions-in-csharp-3-examples-you-need-to-know/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">devleader.ca/2024/04/02/regula</span><span class="invisible">r-expressions-in-csharp-3-examples-you-need-to-know/</span></a></p><p><a href="https://hachyderm.io/tags/CSharp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CSharp</span></a> <a href="https://hachyderm.io/tags/DotNet" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DotNet</span></a> <a href="https://hachyderm.io/tags/Regex" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Regex</span></a> <a href="https://hachyderm.io/tags/RegularExpressions" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RegularExpressions</span></a></p>
suzune<p>Wieso machen wir <a href="https://mastodon.social/tags/Gendern" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Gendern</span></a> nicht mit <a href="https://mastodon.social/tags/Regul%C3%A4renAusdr%C3%BCcken" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RegulärenAusdrücken</span></a>?</p><p>Kolleg(inn)?en<br>Mitarbeiter(innen)?</p><p>Ist doch viel einfacher und logisch nachvollziehbar. 👍</p><p><a href="https://mastodon.social/tags/regularexpressions" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>regularexpressions</span></a></p>
rk: it’s hyphen-minus actually<p>I have written regular expression engines, in multiple languages and with various performance guarantees. I have written multiple peer-reviewed academic papers on regular expressions, and presented at multiple conferences on them. I was invited to lecture on regex transformations for multiple three-letter agencies. </p><p>Anyway yeah any time I write a regex I fuck it up. </p><p><a href="https://mastodon.well.com/tags/programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>programming</span></a> <a href="https://mastodon.well.com/tags/regularExpressions" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>regularExpressions</span></a></p>
Chris Mackay 🇨🇦<p>You know how you can understand something like Regular Expressions (Grep) well enough to write really complex statements that precisely match the nuanced text patterns you’re hoping to revise, but then 6 months later you look at this RegEx you wrote and can’t parse it at all? Like, literally no idea how it works? As in it-would-be-faster-to-recreate-it-from-scratch-than-to-understand-it-enough-to-change-it-even-slightly?</p><p>I feel like that all the time.</p><p><a href="https://mastodon.social/tags/RegEx" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RegEx</span></a> <a href="https://mastodon.social/tags/RegularExpressions" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RegularExpressions</span></a> <a href="https://mastodon.social/tags/Grep" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Grep</span></a></p>
Rainer "friendica" Sokoll<p>Nach Zeichenketten greppen, die exakt einen Punkt enthalten.<br><code>grep -E '^[^.]*\.[^.]*$'</code> - sieht erstmal komisch aus, aber wenn man es aufdröselt, dann doch nicht. Gehirnschmerzen verursacht allerdings <code>[^.]*</code> - denn <code>[^.]</code> kann natürlich auch eine leere Menge sein, also bedeutet <code>[^.]*</code>auch: "nichts keinmal". Ja, schon klar, das ist formal absolut korrekt. Aber mein Hirn quietscht.</p><p><a href="https://friendica.sokoll.com/search?tag=grep" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>grep</span></a> <a href="https://friendica.sokoll.com/search?tag=regularexpressions" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>regularexpressions</span></a></p>
Patrick Johanneson 🚀 🇨🇦<p>This worked on the first try.</p><p><code>:%s/^\(.*@[^"]\+"\),.*/\1/g</code></p><p><a href="https://mstdn.ca/tags/RegEx" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RegEx</span></a> <a href="https://mstdn.ca/tags/RegularExpressions" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RegularExpressions</span></a> <a href="https://mstdn.ca/tags/vim" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>vim</span></a></p><p>I fully expect two kinds of responses to this:</p><ol><li>What is this, amateur hour?</li><li>What the <em>fuck</em> is <em>that</em>?</li></ol>
Skalad<p><a href="https://mastodon.social/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a> and <a href="https://mastodon.social/tags/RegularExpressions" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RegularExpressions</span></a> are fun. Trying to map one set of unique identifiers against another, on a dataset that has discernable patterns but too much variability to do a simple Excel formula. Sometimes there are spaces, sometimes it's one to many. Also, the boss keeps tweaking his ask. Since it's working it a) makes it look like I know what I'm doing and b) is essentially getting to do puzzles on the clock. My opinion will, of course, change if it stops working.</p>