#regularexpressions — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #regularexpressions, aggregated by home.social.
-
RE: https://mastodon.social/@mikaeru/115502251163025356
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:
https://blog.unicode.org/2026/03/uts-18-more-unicode-properties-in.html
-
GNU awk
From
awkwith loveQuote
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.https://www.gnu.org/software/gawk/
https://lists.gnu.org/archive/html/info-gnu/2026-02/msg00011.html
#awk #GNUawk #regular #expressions #RegularExpressions #regex #programming #GNU #NotUnix #OpenSource #POSIX
-
GNU awk
From
awkwith loveQuote
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.https://www.gnu.org/software/gawk/
https://lists.gnu.org/archive/html/info-gnu/2026-02/msg00011.html
#awk #GNUawk #regular #expressions #RegularExpressions #regex #programming #GNU #NotUnix #OpenSource #POSIX
-
[Follow-Up]
Reference links:
- UTS #18: Unicode Regular Expressions
🔗 https://www.unicode.org/reports/tr18/- UTS #18: Unicode Regular Expressions [Proposed Update]
🔗 https://www.unicode.org/reports/tr18/proposed.html- Issues - tonton-pixel/unicopedia-plus - Codeberg.org
🔗 https://codeberg.org/tonton-pixel/unicopedia-plus/issues -
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.
https://docs.raku.org/language/regexes#Literals_and_metacharacters
-
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. https://medium.com/@ptmcg/re-sub-as-a-decorator-madness-717eea7ded50 #python #decorators #regularexpressions
-
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 -
Just had to rename a bunch of files underscore-separated timestamps, and did a Python gist to facilitate this task to myself in the future.
https://gist.github.com/juandesant/16c337e15a87f430c3ab8483ffa0506d
#Python #FileOperations #FileRenaming #RenamingFiles #OsRename #OsListdir #ReSub #RegularExpressions #RegEx #RegExp #RegExSubstitution
-
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.
http://pragprog.com/titles/d-snrem
#regularexpressions #patternmatching #regex #regexp #textprocessing
-
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.
http://pragprog.com/titles/d-snrem
#regularexpressions #patternmatching #regex #regexp #textprocessing
-
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.
http://pragprog.com/titles/d-snrem
#regularexpressions #patternmatching #regex #regexp #textprocessing
-
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.
http://pragprog.com/titles/d-snrem
#regularexpressions #patternmatching #regex #regexp #textprocessing
-
I already knew of this #regex that tests for #PrimeNumbers but in case you haven’t, then you’re one of the lucky (#xkcd) 10000!
#mathematics #maths #NumberTheory #RegularExpressions #PrimalityTest #StandUpMaths #MattParker @standupmaths
-
I already knew of this #regex that tests for #PrimeNumbers but in case you haven’t, then you’re one of the lucky (#xkcd) 10000!
#mathematics #maths #NumberTheory #RegularExpressions #PrimalityTest #StandUpMaths #MattParker @standupmaths
-
I already knew of this #regex that tests for #PrimeNumbers but in case you haven’t, then you’re one of the lucky (#xkcd) 10000!
#mathematics #maths #NumberTheory #RegularExpressions #PrimalityTest #StandUpMaths #MattParker @standupmaths
-
I already knew of this #regex that tests for #PrimeNumbers but in case you haven’t, then you’re one of the lucky (#xkcd) 10000!
#mathematics #maths #NumberTheory #RegularExpressions #PrimalityTest #StandUpMaths #MattParker @standupmaths
-
I already knew of this #regex that tests for #PrimeNumbers but in case you haven’t, then you’re one of the lucky (#xkcd) 10000!
#mathematics #maths #NumberTheory #RegularExpressions #PrimalityTest #StandUpMaths #MattParker @standupmaths
-
Fun to see some old #Perl #Regex lore on the #StandupMaths youtube channel!
https://www.youtube.com/watch?v=5vbk0TwkokM
I _think_ this trick hails to something Abigail (iykyk) published back in 1998. History repeats! 😄
-
Fun to see some old #Perl #Regex lore on the #StandupMaths youtube channel!
https://www.youtube.com/watch?v=5vbk0TwkokM
I _think_ this trick hails to something Abigail (iykyk) published back in 1998. History repeats! 😄
-
Fun to see some old #Perl #Regex lore on the #StandupMaths youtube channel!
https://www.youtube.com/watch?v=5vbk0TwkokM
I _think_ this trick hails to something Abigail (iykyk) published back in 1998. History repeats! 😄
-
Fun to see some old #Perl #Regex lore on the #StandupMaths youtube channel!
https://www.youtube.com/watch?v=5vbk0TwkokM
I _think_ this trick hails to something Abigail (iykyk) published back in 1998. History repeats! 😄
-
Fun to see some old #Perl #Regex lore on the #StandupMaths youtube channel!
https://www.youtube.com/watch?v=5vbk0TwkokM
I _think_ this trick hails to something Abigail (iykyk) published back in 1998. History repeats! 😄
-
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?
-
@ChristosArgyrop Please don’t use #RegularExpressions to parse #HTML, per this classic Stack Overflow answer: https://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: https://docs.mojolicious.org/ojo
perl -Mojo -E 'g("perl.org")->dom("a[class=highlight-module]")->each( sub { say "https://", "perl.org", $_->attr("href") } )'
-
#Onboarding can be a lengthily and sometimes even boring process (albeit important), especially in big companies...
Serendipitously (I love this word), on my #firstWeek, somebody in my team chat posted "Anybody here good with #regularExpressions?" to which I (modestly) responded "Hell yeah!"
...Leading to my #firstPullRequest in the #newPosition. Wee!
-
@neustradamus #PCRE continues to be a misnomer; it’s a modified subset of #Perl #RegularExpressions with dozens of differences: https://pcre.org/current/doc/html/pcre2compat.html
It's not "(C)ompatible." Accept no substitutes: https://perldoc.perl.org/perlre
#PCRE2 #PerlIncompatibleRegularExpressions #RegularExpression #RegExes #RegExps #regex #regexp
-
@neustradamus #PCRE continues to be a misnomer; it’s a modified subset of #Perl #RegularExpressions with dozens of differences: https://pcre.org/current/doc/html/pcre2compat.html
It's not "(C)ompatible." Accept no substitutes: https://perldoc.perl.org/perlre
#PCRE2 #PerlIncompatibleRegularExpressions #RegularExpression #RegExes #RegExps #regex #regexp
-
@neustradamus #PCRE continues to be a misnomer; it’s a modified subset of #Perl #RegularExpressions with dozens of differences: https://pcre.org/current/doc/html/pcre2compat.html
It's not "(C)ompatible." Accept no substitutes: https://perldoc.perl.org/perlre
#PCRE2 #PerlIncompatibleRegularExpressions #RegularExpression #RegExes #RegExps #regex #regexp
-
@neustradamus #PCRE continues to be a misnomer; it’s a modified subset of #Perl #RegularExpressions with dozens of differences: https://pcre.org/current/doc/html/pcre2compat.html
It's not "(C)ompatible." Accept no substitutes: https://perldoc.perl.org/perlre
#PCRE2 #PerlIncompatibleRegularExpressions #RegularExpression #RegExes #RegExps #regex #regexp
-
@neustradamus #PCRE continues to be a misnomer; it’s a modified subset of #Perl #RegularExpressions with dozens of differences: https://pcre.org/current/doc/html/pcre2compat.html
It's not "(C)ompatible." Accept no substitutes: https://perldoc.perl.org/perlre
#PCRE2 #PerlIncompatibleRegularExpressions #RegularExpression #RegExes #RegExps #regex #regexp
-
I just published “Hugo Regular Expressions (featuring ignoreFiles)” at
https://www.ii.com/hugo-regular-expressions-ignorefiles/
#InfiniteInk #GoHugo #Hugo #ignoreFiles #RE2 #RegEx #RegExp #RegularExpression #RegularExpressions #ReplaceRE #Tech #Byℵ #ByNM -
I just published “Hugo Regular Expressions (featuring ignoreFiles)” at
https://www.ii.com/hugo-regular-expressions-ignorefiles/
#InfiniteInk #GoHugo #Hugo #ignoreFiles #RE2 #RegEx #RegExp #RegularExpression #RegularExpressions #ReplaceRE #Tech #Byℵ #ByNM -
I just published “Hugo Regular Expressions (featuring ignoreFiles)” at
https://www.ii.com/hugo-regular-expressions-ignorefiles/
#InfiniteInk #GoHugo #Hugo #ignoreFiles #RE2 #RegEx #RegExp #RegularExpression #RegularExpressions #ReplaceRE #Tech #Byℵ #ByNM -
I just published “Hugo Regular Expressions (featuring ignoreFiles)” at
https://www.ii.com/hugo-regular-expressions-ignorefiles/
#InfiniteInk #GoHugo #Hugo #ignoreFiles #RE2 #RegEx #RegExp #RegularExpression #RegularExpressions #ReplaceRE #Tech #Byℵ #ByNM -
I just published “Hugo Regular Expressions (featuring ignoreFiles)” at
https://www.ii.com/hugo-regular-expressions-ignorefiles/
#InfiniteInk #GoHugo #Hugo #ignoreFiles #RE2 #RegEx #RegExp #RegularExpression #RegularExpressions #ReplaceRE #Tech #Byℵ #ByNM -
@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.
-
@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: https://metacpan.org/pod/JSON::Decode::Regexp
Full docs on conditional #regexes, including the special `(DEFINE)` form that merlyn used: https://perldoc.perl.org/perlre#condition-yes-pattern-no-pattern
* #RakuLang hasn't been called #Perl6 for four years now. You're deadnaming the language.
-
Any #RakuLang core hackers want to take up this challenge?
#RegularExpressions #RegExps #RegExes #RegEx https://ruby.social/@gd/110718818730295923
-
Congratulations @siegel and @bbedit for another great feature story on the #Mac #AppStore. "Where Respect Is Due," indeed!
https://apps.apple.com/us/story/id1435835881
Here are some earlier #BBEdit stories:
• Why it's the #TextEditor of choice for #coding, #writing, #DataScience, and more: https://apps.apple.com/us/story/id1433999132
• Tips for prose #writers: https://apps.apple.com/us/story/id1451975928
• Learn and experiment with #RegularExpressions for finding and modifying text in your actual work—safely! https://apps.apple.com/us/story/id1485320067
#RegEx #RegExes -
@ovid #git has Perl “Compatible” #RegularExpressions.
This page tells you where they differ with actual #Perl regular expressions: http://www.pcre.org/current/doc/html/pcre2compat.html
Most notably, #PCRE2 only has a subset of #Unicode support: http://www.pcre.org/current/doc/html/pcre2unicode.html
-
Wonderful:
"Why Split Lexing And Parsing Into Two Separate Phases?", Laurence Tratt (https://tratt.net/laurie/blog/2023/why_split_lexing_and_parsing_into_two_separate_phases.html).
Via HN: https://news.ycombinator.com/item?id=35798829
#Lexing #Parsing #RegEx #RegularExpressions #Compilers #Interpreters #Lex #Yacc #grmtools #Rust #Programming #Grammar
-
Wonderful:
"Why Split Lexing And Parsing Into Two Separate Phases?", Laurence Tratt (https://tratt.net/laurie/blog/2023/why_split_lexing_and_parsing_into_two_separate_phases.html).
Via HN: https://news.ycombinator.com/item?id=35798829
#Lexing #Parsing #RegEx #RegularExpressions #Compilers #Interpreters #Lex #Yacc #grmtools #Rust #Programming #Grammar
-
Wonderful:
"Why Split Lexing And Parsing Into Two Separate Phases?", Laurence Tratt (https://tratt.net/laurie/blog/2023/why_split_lexing_and_parsing_into_two_separate_phases.html).
Via HN: https://news.ycombinator.com/item?id=35798829
#Lexing #Parsing #RegEx #RegularExpressions #Compilers #Interpreters #Lex #Yacc #grmtools #Rust #Programming #Grammar
-
@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.
-
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:
https://us02web.zoom.us/meeting/register/tZEpde-sqTkvGtCdMsrBl825tFrpDQ98FkAI#xl8 #l10n #TranslationStudies #RegularExpressions #localization
-
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:
https://us02web.zoom.us/meeting/register/tZ0sf-CorT4iHtIKPVYX3FkORla4IdGfySXa -
@Perl Are you working through the #OReilly #book ‘Learning #Perl’? Get extra practice with co-author brian d foy’s ‘Learning Perl Exercises’ #ebook: https://leanpub.com/learning_perl_exercises
Don’t have ‘Learning Perl’ yet? Buy it in paperback or ebook here: https://shop.aer.io/oreilly/p/learning-perl-8th/9781492094951-9149
Prefer #Amazon #Kindle? https://amzn.to/3QZj7t6 (affiliate link)#books #bookstodon #coding #programming #SoftwareDevelopment #ProgrammingLanguages #Perl5 #RegularExpressions #regexes #regexps #Unicode #CPAN
-
@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: https://perldoc.perl.org/perlretut#Embedding-comments-and-modifiers-in-a-regular-expression
We format the rest of our code for humans. Why not #regexps?
#PerlCritic can warn against bad regexps: https://metacpan.org/search?size=200&q=module%3APerl%3A%3ACritic%3A%3APolicy%3A%3ARegularExpressions
-
#BrianKernighan - Where #GREP Came From - #Computerphile
"Commonly used grep was written overnight, but why and how did it get its name?"
https://www.youtube.com/watch?v=NTfOnGZUZDk&ab_channel=Computerphile
#BellLabs #Bell #Programming #UNIX #Linux #Pipeline #PipelineProgramming #InputOutput #ED #RegularExpression #RegularExpressions
-
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