toad.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Mastodon server operated by David Troy, a tech pioneer and investigative journalist addressing threats to democracy. Thoughtful participation and discussion welcome.

Administered by:

Server stats:

273
active users

#regex

0 posts0 participants0 posts today
Paul Hoffman<p>Asking for an opinion from all my <a href="https://infosec.exchange/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> friends. The non-work Python project I'm developing has a few places where I need to find the most recent text above the current position that matches a <a href="https://infosec.exchange/tags/regex" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>regex</span></a>. I can either:</p><p>- Require the non-standard regex module (<a href="https://pypi.org/project/regex/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">pypi.org/project/regex/</span><span class="invisible"></span></a>) which has a REVERSE flag</p><p>- Create a "match all the things from the beginning, but then only use the one whose match.start() is before the current position</p><p>The first is clearly cleaner, but requires users to add one more module (they're already needing to add two others for different stuff in the program). The second is a tad kludgy, slower (but only by maybe a tenth of a second), but requires no additional includes.</p><p>Opinions? Strong opinions? First-hand experience with the regex module?</p>
masukomi<p>It took me WAY too long to tweak this regular expression to work correctly with a <a href="https://connectified.com/tags/markdown" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>markdown</span></a> image used as the visible part of a markdown link.</p><p>[edit: nm, it only works in the "simple" case of one link per line]<br><a href="https://connectified.com/tags/regex" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>regex</span></a> <a href="https://connectified.com/tags/regexp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>regexp</span></a></p>
kamatahvel<p>Hi <a href="https://infosec.exchange/tags/GetFediHired" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>GetFediHired</span></a>, I'm looking for a <a href="https://infosec.exchange/tags/remote" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>remote</span></a> role in the US (or <a href="https://infosec.exchange/tags/sweden" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>sweden</span></a> if you provide visa assistance!). </p><p>I've worked mostly in <a href="https://infosec.exchange/tags/SoftwareEngineering" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SoftwareEngineering</span></a> space, but I do lean closer to the <a href="https://infosec.exchange/tags/DataEngineering" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DataEngineering</span></a> side of things (past 3 years). Before that I was varying levels of doing SWE things inside a <a href="https://infosec.exchange/tags/BusinessIntelligence" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>BusinessIntelligence</span></a> role (~5 years).</p><p>Looking for something that demands strong <a href="https://infosec.exchange/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a> skills (~5+ years of heavy, daily use), though wouldn't mind having to learn something new. Quite comfortable in a few <a href="https://infosec.exchange/tags/SQL" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SQL</span></a> flavors. I can actually read most <a href="https://infosec.exchange/tags/regex" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>regex</span></a>, if that's a thing worth bragging about. Love writing <a href="https://infosec.exchange/tags/xpath" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>xpath</span></a> in personal webscraping projects. Somewhat familiar with <a href="https://infosec.exchange/tags/SpringBoot" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SpringBoot</span></a> and <a href="https://infosec.exchange/tags/Kotlin" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Kotlin</span></a> (1 year, occasional) and would like to eventually use more Java in work, but not a hard requirement. </p><p>I love refactoring/improving old code, and I have lots of experience with CI/CD, coding best practices, testing, web scraping, backend (Flask) &amp; frontend (React, Typescript). </p><p>Send me a message if this sounds like I'd be a great fit on your team!</p>
John Abbe (aka Slow)<p><span class="h-card" translate="no"><a href="https://kolektiva.social/@lilbatscholar" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>lilbatscholar</span></a></span> You know what they say, when you have a problem and you decide to use a regex then you have two problems. ;-)</p><p>Srsly though sounds like a regex problem. Assuming you have access to the code, or Mastodon has a rich enough plug-in scheme. <a href="https://mastodon.social/tags/regex" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>regex</span></a></p>
Ivan Enderlin 🦀<p>Adding lookbehinds to rust-lang/regex, <a href="https://systemf.epfl.ch/blog/rust-regex-lookbehinds/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">systemf.epfl.ch/blog/rust-rege</span><span class="invisible">x-lookbehinds/</span></a>.</p><p>The feature of lookbehinds is very often absent in linear regex engines. These researchers bring them in the `regex` crate. The benchmarks show a reasonable and usable performance making it ready for real-world applications.</p><p>The article gives all pointers to the research article and the patches for `regex` (on github.com).</p><p>The prevention of unnecessary lookbehind scanning till the end of the haystack is neat!</p><p><a href="https://floss.social/tags/RustLang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RustLang</span></a> <a href="https://floss.social/tags/regex" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>regex</span></a></p>
Alex<p>Apropos of last weekends <a href="https://mastodon.org.uk/tags/emacs" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>emacs</span></a> hacking. How many times would you ask an <a href="https://mastodon.org.uk/tags/llm" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>llm</span></a> to generate a <a href="https://mastodon.org.uk/tags/regex" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>regex</span></a> for you before you give up and just use a <a href="https://mastodon.org.uk/tags/rx" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rx</span></a> form?</p>
Taffer 🇨🇦 :godot:<p>TIL: in Python's `re` module, a named group (like `(?P&lt;name&gt;...)` can have `_` in the name, but not `-`, because they need to be valid Python identifiers instead of just strings.</p><p>I've only been using regular expressions in Python since 1.x. 🤦 </p><p><a href="https://mastodon.gamedev.place/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> <a href="https://mastodon.gamedev.place/tags/regex" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>regex</span></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>
George E. 🇺🇸♥🇺🇦🇵🇸🏳️‍🌈🏳️‍⚧️<p><i><b>PSA:</b></i><span><br>Tired of your timeline getting full of people debating the merits of </span><a href="https://bofh.social/tags/AI" rel="nofollow noopener" target="_blank">#AI</a> &amp; <a href="https://bofh.social/tags/LLMs" rel="nofollow noopener" target="_blank">#LLMs</a><span>?<br><br>Add the following </span><a href="https://bofh.social/tags/regex" rel="nofollow noopener" target="_blank">#regex</a><span> to your word mutes:<br> </span><code>/\s.*LLM*./i</code><span><br><br>Now my timeline isn't full of the continuing debate as to whether an </span><a href="https://bofh.social/tags/LLM" rel="nofollow noopener" target="_blank">#LLM</a><span> is good or not.<br><br>(Hint: You can do the same thing for "AI" too!)</span></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>
Sp4rkR4t :yes_scotland:<p>Finally got my head around <a href="https://mastodon.scot/tags/regex" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>regex</span></a> enough to fine tune my <a href="https://mastodon.scot/tags/searxng" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>searxng</span></a> instance to stop showing me results for Perth,AU instead of results for <a href="https://mastodon.scot/tags/PerthKinross" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PerthKinross</span></a>. <a href="https://mastodon.scot/tags/selfhosting" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>selfhosting</span></a></p>
Schenkl | 🏳️‍🌈🦄<p>Muss ich jetzt wirklich so was hier benutzen?</p><p>.*[Ss][Ee][Ll][Ee][Cc][Tt].*[Ff][Rr][Oo][Mm]</p><p><a href="https://chaos.social/tags/regex" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>regex</span></a></p>
L.J.'s victorious sword-dance<p>Loving the power of occur in <a href="https://rage.love/tags/Emacs" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Emacs</span></a>, specifically multi-occur-in-matching-buffers in my case, for finding and listing in a single buffer all <a href="https://rage.love/tags/regex" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>regex</span></a> matches from regex-filtered buffers. Searching across .csv terminology files this way gives me a buffer of search results, each line of which takes me to the line of the source file where the occurrence appears. Extremely useful in <a href="https://rage.love/tags/translation" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>translation</span></a> work for searching across terminology dictionaries I've created in the past. Discovered via Mickey Petersen's Mastering Emacs. <a href="https://www.masteringemacs.org/article/searching-buffers-occur-mode" rel="nofollow noopener" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">masteringemacs.org/article/sea</span><span class="invisible">rching-buffers-occur-mode</span></a></p>
Kagi HQ<p>We've added an optional "Regex" field to Custom Bangs for more precise control. You can now define exactly how your query is split to create more powerful shortcuts.</p><p>Read more about this in our latest changelog: <a href="https://kagi.com/changelog#7389" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">kagi.com/changelog#7389</span><span class="invisible"></span></a></p><p><a href="https://mastodon.social/tags/Kagi" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Kagi</span></a> <a href="https://mastodon.social/tags/Search" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Search</span></a> <a href="https://mastodon.social/tags/Regex" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Regex</span></a></p>
RS, Author, Novelist, Prosaist<p><a href="https://eldritch.cafe/tags/Scrivener" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Scrivener</span></a> and <a href="https://eldritch.cafe/tags/RegEx" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RegEx</span></a> search users who are <a href="https://eldritch.cafe/tags/authors" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>authors</span></a> or <a href="https://eldritch.cafe/tags/writers" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>writers</span></a>. I've updated my pattern strings in my <strong>Regex Searches for Revision and Proofing</strong> document. I fixed some patterns, made them alway case insensitive regardless of your settings, added tests and used them to ensure all the strings work, and updated the instructions.</p><p>If you have suggestions for more words, or an idea for a different pattern to add that helps a writer during revision, reply or PM me.</p><p>HTH</p><p><a href="https://docs.google.com/document/d/1-g6jx8teJQE1uXLA-XwZP6cTMe5_-xz2AGLRHffNVlc/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">docs.google.com/document/d/1-g</span><span class="invisible">6jx8teJQE1uXLA-XwZP6cTMe5_-xz2AGLRHffNVlc/</span></a></p><p><a href="https://eldritch.cafe/tags/BoostingIsSharing" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>BoostingIsSharing</span></a> </p><p><a href="https://eldritch.cafe/tags/writingCommunity" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>writingCommunity</span></a> <a href="https://eldritch.cafe/tags/writersOfMastodon" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>writersOfMastodon</span></a></p>
Inautilo<p><a href="https://mastodon.social/tags/Development" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Development</span></a> <a href="https://mastodon.social/tags/Techniques" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Techniques</span></a><br>Easier to use regexes in JavaScript · “This is how regular expressions are meant to be written.” <a href="https://ilo.im/164w9a" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">ilo.im/164w9a</span><span class="invisible"></span></a></p><p>_____<br><a href="https://mastodon.social/tags/Programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Programming</span></a> <a href="https://mastodon.social/tags/Coding" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Coding</span></a> <a href="https://mastodon.social/tags/JavaScript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>JavaScript</span></a> <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/Readability" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Readability</span></a> <a href="https://mastodon.social/tags/Whitespace" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Whitespace</span></a> <a href="https://mastodon.social/tags/Comments" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Comments</span></a> <a href="https://mastodon.social/tags/Documentation" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Documentation</span></a> <a href="https://mastodon.social/tags/WebDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WebDev</span></a></p>
Oriel Jutty :hhHHHAAAH:<p>I'm not sure what happened here, but I'm willing to bet regexes are involved. </p><p><a href="https://infosec.exchange/tags/regex" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>regex</span></a></p>
Mina<p><span class="h-card" translate="no"><a href="https://social.wildeboer.net/@jwildeboer" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>jwildeboer</span></a></span> </p><p>My guess is <a href="https://berlin.social/tags/ReGex" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ReGex</span></a>:</p><p>In regular expressions, the underscore counts as a "word character", whilst dashes, commas, dots, whitespaces etc. count as "non word characters".</p><p>This is a hugely important thing: All relevant APIs rely heavily on RegExes.</p><p>I'm afraid, your initiative won't succeed for that reason:</p><p>All <a href="https://berlin.social/tags/ActivityPub" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ActivityPub</span></a> software would have to be revised and patched to solve a niche annoyance.</p><p>My bet: It ain't gonna happen.<br> <br><span class="h-card" translate="no"><a href="https://mastodon.social/@Gargron" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>Gargron</span></a></span> <span class="h-card" translate="no"><a href="https://cosocial.ca/@evan" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>evan</span></a></span></p>
Maj - 🇨🇦<p><span class="h-card" translate="no"><a href="https://cosocial.ca/@timbray" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>timbray</span></a></span> my first job out of uni was parsing hand coded html with perl.<br>It has proven, this far, to be both impossible to do perfectly and a fantastic source of job security.</p><p>(Yes I use Python NLP pipelines and such these days but still...)</p><p><a href="https://cosocial.ca/tags/perl" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>perl</span></a> <a href="https://cosocial.ca/tags/regex" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>regex</span></a> <a href="https://cosocial.ca/tags/html" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>html</span></a></p>
Danie van der Merwe<p>This is a good overview of how regex works</p><p>“Regex is a pattern-matching language; it’s a way to expressively describe patterns that match strings (e.g., words or sentences). For example, say you’re searching your hard drive for an image called foo, but you cannot remember if it’s a JPEG or a ...continues</p><p>See <a href="https://gadgeteer.co.za/this-is-a-good-overview-of-how-regex-works/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">gadgeteer.co.za/this-is-a-good</span><span class="invisible">-overview-of-how-regex-works/</span></a></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/technology" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>technology</span></a></p>