#regex

Mehrad :kde: :emacs: :rstats:Mehrad@fosstodon.org
2025-12-12

I needed to do some text manipulation (reformat sample names) in R and it suddenly hit me that I can use regex capturing groups and write a on-liner. I was surprised that the default `base::gsub()` actually handled them without any issues:

```r
gsub(x = "Sample1_blah_Treatment2",
pattern = "^([\\w])\\w+(\\d+)_[^_]+_([\\w])\\w+(\\d+)",
replacement = "\\1\\2.\\3\\4",
perl = T)
```

> [1] "S1.T2"

My days of using Perl and learning regex is paying off 😅

#RStats #regex

2025-12-07

𝗥𝗲𝗴𝗲𝘅𝗴𝗽𝘁:

#Regex #IA #RegexGPT

thewhale.cc/posts/regexgpt

RegexGPT is a tool that lets people generate regex patterns by inputting an example of the text they would like to transform and another input for the expected result. There is also a natural language input that allows the user to explain the pattern they would like to match. The final input lets users select the programming language for the output.

RegexGPT is a tool that lets people generate regex patterns by inputting an example of the text they would like to transform and another input for the expected result. There is also a natural language input that allows the user to explain the pattern they would like to match. The final input lets users select the programming language for the output.
Oriel Jutty :hhHHHAAAH:barubary@infosec.exchange
2025-12-07
2025-12-07

𝗥𝗲𝗴𝗲𝘅.𝗮𝗶:

#Regex #RegexAI #AI

thewhale.cc/posts/regex-ai

AI-Powered Regular Expression Solver. Insert your text and drag the cursor to highlight multiple strings to find matching regular expression. You can also click on the highlighted text to remove it.

AI-Powered Regular Expression Solver. Insert your text and drag the cursor to highlight multiple strings to find matching regular expression. You can also click on the highlighted text to remove it.
❀𝓪𝓵𝓬𝓮𝓪𖤐alcea@alceawis.com
2025-12-06
Thanks but #NoThx 😿
https://regexle.ithea.de/
#Regex #Regexle
(I don't even like #Wordle ...)
#repost •acws #acws
Uploaded Screenshot_20251206-070422_Brave.png
𝕂𝚞𝚋𝚒𝚔ℙ𝚒𝚡𝚎𝚕kubikpixel@chaos.social
2025-12-05

🧵 …ich muss zum oben verlinkten Video noch dazu ergänzen, dass auch Argon2 & Co. nicht hindern simple Passwörter zu "knacken" (zu erraten). Diesbezüglich ua Regex Bestimmungen dies schon ein wenig von simplen eratbaren Passwörter (zB chaos.social/@kubikpixel/11558) hindert und auch wenn die nicht in @haveibeenpwned aufgeführt sind, könnten die simpel eratbar sein. Das heißt min. 2FA oder gleich Passkeys sind einiges sicherer.

#passkeys #2fa #passwort #itsicherheit #zweifaktorauthentifizierung #regex

𝕂𝚞𝚋𝚒𝚔ℙ𝚒𝚡𝚎𝚕kubikpixel@chaos.social
2025-12-05
2025-12-04

Regex.

Invented to understand neurons, evolved into a computational knife that can parse text, melt CPUs, summon Unicode nightmares, and ruin weekends. Not regular, barely expression, and mostly trauma.

Still we use it. Still we love it.

#computerscience #regex #linguistics #math

keystone-collective.org/the-pe

Christopher Himeseeentropyyy@hachyderm.io
2025-12-03

christopherhimes.com/blog/2025

Spent some time yesterday reviewing other people's solutions to day 2 and I do not recommend my solution.

#AdventOfCode #AdventOfCode2025 #Python #Regex

2025-12-03

Регулярные выражения в Python: почему ваши парсеры тормозят и как это исправить

Регулярные выражения часто воспринимаются как write-only код: написал и забыл, потому что прочитать это невозможно. Но настоящие проблемы начинаются не с читаемости, а с производительности. Неправильный квантификатор или использование re.findall на больших данных могут парализовать работу приложения.

habr.com/ru/articles/972746/

#regex #python #python_для_начинающих #re

Patrick :neocat_flag_bi:patrick@hatoya.cafe
2025-12-03

One Open-source Project Daily

A simple, fast and user-friendly alternative to 'find'

https://github.com/sharkdp/fd

#1ospd #opensource #cli #commandline #filesystem #hacktoberfest #regex #rust #search #terminal #tool

2025-11-30

𝗥𝘂𝗹𝗲𝘅:

#Regex #Rulex

thewhale.cc/posts/rulex

Rulex is a new, portable, regular expression language.

Rulex is a new, portable, regular expression language.
Sr. Estegosaurio 🦕SrEstegosaurio@mstdn.social
2025-11-29

Amazing Nushell W.
Now I will not be opening regexr.com every time I need a somewhat complex regexp.

nushell.sh/blog/2025-11-29-nus

#nushell #shell #terminal #linux #regex

2025-11-28

𝗥𝗲𝗴𝗲𝘅 𝗟𝗲𝗮𝗿𝗻:

#Regex #RegularExpression #Regex #Learn

thewhale.cc/posts/regex-learn

Learn Regex step by step, from zero to advanced. Learning Regex is easier than you think. You can use this tool to easily learn, practice, test and share Regex.

Learn Regex step by step, from zero to advanced. Learning Regex is easier than you think. You can use this tool to easily learn, practice, test and share Regex.
2025-11-28

Удаляем пробелы из строки

Недавно мы разбирали популярную задачу — проверяли строку на наличие цифр . Еще одна популярная задача при работе со строками — удалить из них пробельные символы. Можно представить, что нам нужно очистить пользовательский ввод: удалить пробелы вначале и конце строк в имени или удалить пробелы из телефонного номера. .NET предоставляет нам несколько возможностей для решения этой задачи, давайте рассмотрим самые популярные и попробуем найти наиболее эффективные. Заодно проверим, какие изменения произошли в новой версии .NET 10.

habr.com/ru/companies/skbkontu

#net #linq #regex #c# #string

2025-11-25

GitHub - gchq/CyberChef: The Cyber Swiss Army Knife - a web app for encryption, encoding, compression and data analysis github.com/gchq/CyberChef #compression #OpenSource #encryption #analysis #encoding #decoder #encoder #entropy #network #GitHub #online #regex #data #dump #list #tool #app #hex #url #web

:rss: Qiita - 人気の記事qiita@rss-mstdn.studiofreesia.com
2025-11-25
Massa 👽 Humbertomassa@hachyderm.io
2025-11-24

@manwar The last one in your examples is wrong, it ends at (2,2), so the answer is false...

Anyway, after the nice cup of coffee in my Monday morning, I got to the following #RakuLang #OneLiners -- the first making good use of Raku's nice #RegEx #RegExen #RegExes and the second, of the Bag type...

Power String: ```
m:g/(.)[$0*]/.list».Str».chars.max
```
Meeting Point : ```
.comb.Bag.&{.<L> == .<R> && .<U> == .<D>}
```

One nice, brown, small cup of coffee, on a white saucer, all on top of my dragon-themed deskmat.Screen capture demonstrating the test for the one-line answers to the current week challenges
2025-11-23

Bộ lọc regex yếu và dễ bị crash, gây ra lỗi và nguy hiểm. Không đủ linh hoạt để bắt các cuộc tấn công ngữ nghĩa, và đủ phức tạp để gây ra lỗi Redos. #Regex #AI #AnToànBảoMật # requerimentosDeSegurança #LỗihổngBảoMật #ThửTháchAnToàn #BảoMậtTrợLy # AIassistant

reddit.com/r/LocalLLaMA/commen

50 Dateien von #mediathekview mit rename umzubenennen ging trotz #regex schneller als von Hand 😁

Bin natürlich in die Umlautfalle getappt. \w* steht nicht für alle Wörter habe ich jetzt gelernt.

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst