home.social

#regularexpressions — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #regularexpressions, aggregated by home.social.

  1. RE: mastodon.social/@mikaeru/11550

    The latest post on the Unicode Consortium blog gives an exhaustive list of all the new Unicode properties in regular expressions (regex), and explains why all the supported properties are so important and can be so useful:

    blog.unicode.org/2026/03/uts-1

    #Unicode #Properties #Regex #RegularExpressions

  2. GNU awk

    From awk with love

    Quote

    This is a major release. The relevant part of the NEWS file is appended
    below. A diff file from the previous release is not available
    The online manuals have been updated.

    gnu.org/software/gawk/

    lists.gnu.org/archive/html/inf

    #awk #GNUawk #regular #expressions #RegularExpressions #regex #programming #GNU #NotUnix #OpenSource #POSIX

  3. GNU awk

    From awk with love

    Quote

    This is a major release. The relevant part of the NEWS file is appended
    below. A diff file from the previous release is not available
    The online manuals have been updated.

    gnu.org/software/gawk/

    lists.gnu.org/archive/html/inf

    #awk #GNUawk #regular #expressions #RegularExpressions #regex #programming #GNU #NotUnix #OpenSource #POSIX

  4. [Follow-Up]

    Reference links:

    - UTS #18: Unicode Regular Expressions
    🔗 unicode.org/reports/tr18/

    - UTS #18: Unicode Regular Expressions [Proposed Update]
    🔗 unicode.org/reports/tr18/propo

    - Issues - tonton-pixel/unicopedia-plus - Codeberg.org
    🔗 codeberg.org/tonton-pixel/unic

    #Unicopedia #Unicode #Regex #RegularExpressions

  5. Raku: The match of a regex is automatically stored in $/, and this variable then also provides access to the text before ($/.prematch), to the text after ($/.postmatch), and to the match's position ($/.from and $/.to). Nice.

    docs.raku.org/language/regexes

    #raku #rakulang #regularexpressions #regex #regexes

  6. 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.

    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. medium.com/@ptmcg/re-sub-as-a-

  7. How do I use regular expressions to mute specific terms without muting them if they're just part of a word?
    So like, in a stupid example:
    I want to block "lol" but not "testloltest"
    #regularexpressions #regularexpression #sharkey #misskey #wordmute

  8. New at PragProg

    Staffan Nöteberg helps you really understand how the machinery works under the hood. Learn advanced tools like reluctant, lookbehind and nondeterministic finite automata to write efficient and elegant regexes with ease.

    In this illustrated guide, you gain precisely that understanding., even with no prior knowledge of Regular Expressions.

    pragprog.com/titles/d-snrem

    @staffannoteberg

    #regularexpressions #patternmatching #regex #regexp #textprocessing

  9. New at PragProg

    Staffan Nöteberg helps you really understand how the machinery works under the hood. Learn advanced tools like reluctant, lookbehind and nondeterministic finite automata to write efficient and elegant regexes with ease.

    In this illustrated guide, you gain precisely that understanding., even with no prior knowledge of Regular Expressions.

    pragprog.com/titles/d-snrem

    @staffannoteberg

    #regularexpressions #patternmatching #regex #regexp #textprocessing

  10. New at PragProg

    Staffan Nöteberg helps you really understand how the machinery works under the hood. Learn advanced tools like reluctant, lookbehind and nondeterministic finite automata to write efficient and elegant regexes with ease.

    In this illustrated guide, you gain precisely that understanding., even with no prior knowledge of Regular Expressions.

    pragprog.com/titles/d-snrem

    @staffannoteberg

    #regularexpressions #patternmatching #regex #regexp #textprocessing

  11. New at PragProg

    Staffan Nöteberg helps you really understand how the machinery works under the hood. Learn advanced tools like reluctant, lookbehind and nondeterministic finite automata to write efficient and elegant regexes with ease.

    In this illustrated guide, you gain precisely that understanding., even with no prior knowledge of Regular Expressions.

    pragprog.com/titles/d-snrem

    @staffannoteberg

  12. Fun to see some old #Perl #Regex lore on the #StandupMaths youtube channel!

    youtube.com/watch?v=5vbk0Twkok

    I _think_ this trick hails to something Abigail (iykyk) published back in 1998. History repeats! 😄

    #RegularExpressions #JAPH

  13. Fun to see some old #Perl #Regex lore on the #StandupMaths youtube channel!

    youtube.com/watch?v=5vbk0Twkok

    I _think_ this trick hails to something Abigail (iykyk) published back in 1998. History repeats! 😄

    #RegularExpressions #JAPH

  14. Fun to see some old #Perl #Regex lore on the #StandupMaths youtube channel!

    youtube.com/watch?v=5vbk0Twkok

    I _think_ this trick hails to something Abigail (iykyk) published back in 1998. History repeats! 😄

    #RegularExpressions #JAPH

  15. Fun to see some old #Perl #Regex lore on the #StandupMaths youtube channel!

    youtube.com/watch?v=5vbk0Twkok

    I _think_ this trick hails to something Abigail (iykyk) published back in 1998. History repeats! 😄

    #RegularExpressions #JAPH

  16. Fun to see some old #Perl #Regex lore on the #StandupMaths youtube channel!

    youtube.com/watch?v=5vbk0Twkok

    I _think_ this trick hails to something Abigail (iykyk) published back in 1998. History repeats! 😄

    #RegularExpressions #JAPH

  17. Wenn ich #Perl Scripte mit #VisualStudioCode editieren möchte (ja, ich bin alt und habe alten Code zu pflegen), welches der tausend Plugins für Perl sollte ich da verwenden? Und gibt es ein zum RxToolkit in Activestate Kommodo vergleichbaren Editor für #RegularExpressions als #VSC Plugin?

  18. @ChristosArgyrop Please don’t use #RegularExpressions to parse #HTML, per this classic Stack Overflow answer: stackoverflow.com/a/1732454

    #Mojolicious’ Mojo::DOM will do a much better job and is easily used in #Perl one-liners with the cleverly-named “ojo” module: docs.mojolicious.org/ojo

    perl -Mojo -E 'g("perl.org")->dom("a[class=highlight-module]")->each( sub { say "https://", "perl.org", $_->attr("href") } )'

  19. can be a lengthily and sometimes even boring process (albeit important), especially in big companies...

    Serendipitously (I love this word), on my , somebody in my team chat posted "Anybody here good with ?" to which I (modestly) responded "Hell yeah!"

    ...Leading to my in the . Wee!

  20. @sparkman Some people, when confronted with another person solving a problem with #RegularExpressions, think, “I know, I’ll quote @jwz.” Now they feel clever without having to contribute anything.

    #RegExes #programming #coding #SoftwareDevelopment

  21. @mort You can get pretty far with #Perl 5* #RegularExpressions. Here's @perlancar’s #CPAN module based on @randalschwartz’s minimal #JSON parser as a single #regex: metacpan.org/pod/JSON::Decode:

    Full docs on conditional #regexes, including the special `(DEFINE)` form that merlyn used: perldoc.perl.org/perlre#condit

    * #RakuLang hasn't been called #Perl6 for four years now. You're deadnaming the language.

  22. Congratulations @siegel and @bbedit for another great feature story on the #Mac #AppStore. "Where Respect Is Due," indeed!

    apps.apple.com/us/story/id1435

    Here are some earlier #BBEdit stories:

    • Why it's the #TextEditor of choice for #coding, #writing, #DataScience, and more: apps.apple.com/us/story/id1433

    • Tips for prose #writers: apps.apple.com/us/story/id1451

    • Learn and experiment with #RegularExpressions for finding and modifying text in your actual work—safely! apps.apple.com/us/story/id1485
    #RegEx #RegExes

  23. @Codely @drupler It helps to build your complicated #RegularExpressions in pieces and store them in separate variables. You can then test them in isolation and not be confused when you concatenate them together for your actual matching.

    Both #PHP and #JavaScript also support named capture groups if you’re doing replacements. They’re a lot more readable.

    Also, PHP’s #PCRE-based engine has a PCRE_EXTENDED flag that lets you add whitespace, newlines, and comments.

    #regexes #regexps

  24. I'll be repeating my online workshop series on the #memoQ Regex Assistant on March 9, 16 and 23 from 3:00-4:30pm (Lisbon time).

    #Regex is a powerful tool for solving problems of text structure in #translation, review and QA (among other things), but its arcane syntax is off-putting to most people, and real mastery takes a long time. But the Regex Assistant eliminates this problem by allowing stored libraries of useful regular expressions to be accessed via plain language names and labels, with detailed descriptions to aid in their use. If you can read, you can use this regex in memoQ (or elsewhere).

    This "rebooted" instance of the workshops reorganizes the prior presentation and examples based on questions and help requests from prior participants. As before, attendance is free, but registration is required.

    To join us:
    us02web.zoom.us/meeting/regist

    #xl8 #l10n #TranslationStudies #RegularExpressions #localization

  25. The last of my three public talks on the #memoQ #Regex Assistant will be next Thursday, February 2nd, at 12pm Central European Time.

    This series has focused on how ordinary, intelligent #translators and reviewers can use the power of #RegularExpressions to solve problems in #translation and #localization without getting bogged down in ugly, non-intuitive syntax.

    Attendees are given a useful library of expressions to aid their work, which are organized with understandable names, labels and descriptions - all you need to find and apply them. Most of these expressions should be usable in other tools like #Trados Studio or #Xbench.

    Here is a link to obtain access to the last live presentation and Q&A:
    us02web.zoom.us/meeting/regist

    #xl8 #TranslationStudies #l10n

  26. @sjn @cb 99% of the “#Perl is line noise” complaints are because of unformatted #RegularExpressions. Every language worth anything eventually supports them, but only @Perl (and #awk, earlier) makes them first-class citizens. And with Perl you can format and comment them for readability: perldoc.perl.org/perlretut#Emb

    We format the rest of our code for humans. Why not #regexps?

    #PerlCritic can warn against bad regexps: metacpan.org/search?size=200&q

    #regex #regexes #programming #coding #SoftwareDevelopment

  27. The first time I peeked inside this book, I thought I’d fallen in a well and smacked my head. It was utter gibberish.

    A week later I was a wizard, wielding previously unknown powers, casting powerful spells of extraction and substitution far and wide. I was sucked in to the beauty and power of regular expressions and there was no looking back.

    #SedAndAwk
    #ClassicOreillyLibrary
    #ComputerGeek
    #RegularExpressions #Linux #SysAdmin