#regexp — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #regexp, aggregated by home.social.
-
Perl — зря забытый язык программирования?
В настоящее время Perl обделяется вниманием: о нём мало что и где можно услышать и увидеть. При этом Perl действительно уникальный язык программирования, который может предложить что‑то новое, и особенности которого сильно выделяют его среди других. И сегодня я вам о нём поведаю, а также расскажу о его фичах с примерами его применения.
https://habr.com/ru/articles/1025824/
#perl #обучение #regex #regexp #язык_программирования #обзор_языка
-
RegExp lastIndex Mutates Global Matches?!
Global regex has MEMORY! The lastIndex property remembers where it stopped. Reset it to 0 and the same regex matches DIFFERENTLY. This mutation behavior will cause bugs you'll never find!
#javascript #javascripttricks #regexp #lastindex #globalregex #javascriptweird #javascriptquiz #codingchallenge #javascriptshorts #javascriptwtf #regexmutation #advancedjavascript
-
You can't parse XML with regex. Let's do it anyways
https://sdomi.pl/weblog/26-nobody-here-is-free-of-sin/
#ycombinator #xml #regexp #parser #bash #html #xhtml #regular_expression -
Das wäre dann auch meine einzige Kritik an @emk s Ansatz: In #Lowmark finden sich viele reguläre Ausdrücke zum Parsen. Die sind aber schwer zugänglich. Ich versuche Parser meist ohne #RegExp zu schreiben. Das macht den Code deutlich länger, aber leichter zu verstehen.
-
If the title of this one doesn't interest you, the contents sure won't! Correcting Years With #NVDA and #Espeak: stuff.interfree.ca/2025/08/28/correct-years-with-nvda-and-espeak.html #regexp #blind #screenreader #a11y #accessibility -
If the title of this one doesn't interest you, the contents sure won't! Correcting Years With #NVDA and #Espeak: stuff.interfree.ca/2025/08/28/correct-years-with-nvda-and-espeak.html #regexp #blind #screenreader #a11y #accessibility -
If the title of this one doesn't interest you, the contents sure won't! Correcting Years With #NVDA and #Espeak: stuff.interfree.ca/2025/08/28/correct-years-with-nvda-and-espeak.html #regexp #blind #screenreader #a11y #accessibility -
If the title of this one doesn't interest you, the contents sure won't! Correcting Years With #NVDA and #Espeak: stuff.interfree.ca/2025/08/28/correct-years-with-nvda-and-espeak.html #regexp #blind #screenreader #a11y #accessibility -
If the title of this one doesn't interest you, the contents sure won't! Correcting Years With #NVDA and #Espeak: stuff.interfree.ca/2025/08/28/correct-years-with-nvda-and-espeak.html #regexp #blind #screenreader #a11y #accessibility -
В общем, раз у нас нет алгоритмической ленты, то ее стоит придумать. Ибо советы типа «ищите интересное в глобалке» работают хреново без статистики. Поэтому, просматривая бота @rur, который на моем сервере и «делает» глобалку, ставил лайки всем подряд всем сколько-нибудь зацепившим постам.
Потом сел думать, что с этим делать. Запросил архив, загрузил в MARL - Mastodon Archive Reader Lite, очень хороший просмотрщик слоноархива прямо в бравузере, помимо прочего показывает ваши лайки в пригодном для парсинга формате (в .json лежат тупо URL'ы постов). Правда, это касается только Mastodon-инстансов, посты с других площадок, к сожалению, остались безымянными, т.к. не включают username в URL (ну, #Pixelfed вроде можно разобрать, но попозже).
Дальше интересно, кстати, было. Поскольку я не погромист, у меня были F12, #Notepad++, #Excel и подозрение, что придется виброкодить. #ChatGPT на запрос #REGEXP'а выродила нечто с виду рабочее, но не в Notepad++. Извинялась, потом пыталась брехать и менсплейнила настройки, но... Не судьба. #Grok справился с первой попытки и еще подсказал, что в Excel #статистика удобно подбвается через «сводную таблицу», буду знать.
В общем, подписался на всех, кого лайкал 2+ раз и добавил их в отдельный список. И туда же — тех, кто часто лайкает/бустит меня, это можно посмотреть через сервис MastoMetrics, тоже полезная штука. Потом убрал лишних ботов вроде «лисичка каждый час», и вот смотрю, что получилось.
На первый взгляд, много англоязычного (и мунспика), бустов (в списках их нельзя вырубить, в отличие от домашки) и в целом «кто все эти люди?», но вроде же так и должна выглядеть алгоритмическая лента, не? 😉
-
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 -
Useful #beginner #VIM #substitution #regexp #pattern for today:
I needed to add markdown to plaintext reference pattern e.g. "(photo 1)" .
~~~
%s/(\(photo [0-9]*\))/\*\0\*/g
~~~and for any pattern that matches "(word Nchar)" e.g.: (figure 3c)
:%s/(\(\a* [0-9]*\a\))/\*\0\*/g
Also, I kept failing, because \a[0-9]* instead of [0-9]*\a . Which wasn't even intended, just a typo. (Pun not intended neither) :D
-
To my fellow #ActuallyAutistics who are also into programming. Can you handle #RegEx / #RegExp?
Up to how much complexity?
When I was younger, it was easy. Today, I have to use a test tool! ^_^;;
#Autistics #Autism #ActuallyAutistic #Autistic #AutismSpectrum #AskingAutistics
-
#Programming #languages I used professionally, or for real/finished personal projects:
- #Bash
- #CSharp
- #CoffeeScript (ugh)
- #Haskell
- #Java
- #JavaScript
- #Kotlin
- #Perl
- #PHP
- #Python
- #Ruby
- #Scala
- #TypeScriptDSLs that matter:
- #HTML, #CSS
- #PCRE #regexp
- #SQL
- #Math 😛Others I learned or played with, and that I can probably pick up quickly:
- #Clojure
- #CPP
- #FSharp
- #OCamlI should probably mention my non-native #English 🙂
Primarily, we're language learners 💪
-
Linux Fu: Globs vs Regexp - I once asked a software developer at work how many times we called fork() in our c... - https://hackaday.com/2021/10/07/linux-fu-globs-vs-regexp/ #regularexpressions #softwarehacks #linuxhacks #linuxfu #regexp #linux #bash #glob