mstdn.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A general-purpose Mastodon server with a 500 character limit. All languages are welcome.

Administered by:

Server stats:

9.6K
active users

#regex

5 posts5 participants0 posts today

Ваш сайт теряет пользователей прямо сейчас. Виноват один символ: '+' в email

Привет, Хабр! Представьте ситуацию: вы нашли крутой сервис, регистрируетесь, вводите свой email my.name+coolservice@gmail.com (ведь вы, как и я, любите порядок во входящих) и… получаете ошибку «Некорректный email». Знакомо? Уверен, что да. Каждый раз, когда я сталкиваюсь с таким, у меня дергается глаз. Это не просто мелкий баг. Это симптом глубокой проблемы в подходе к разработке и непонимания базовых стандартов. Давайте раз и навсегда разберемся, почему сервисы не принимают почту с «плюсом», почему это плохо для бизнеса и, главное, как это исправить.

habr.com/ru/articles/930160/

ХабрВаш сайт теряет пользователей прямо сейчас. Виноват один символ: '+' в emailПривет, Хабр! Представьте ситуацию: вы нашли крутой сервис, регистрируетесь, вводите свой email my.name+coolservice@gmail.com (ведь вы, как и я, любите порядок во входящих) и… получаете ошибку...

Adding lookbehinds to rust-lang/regex, systemf.epfl.ch/blog/rust-rege.

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.

The article gives all pointers to the research article and the patches for `regex` (on github.com).

The prevention of unnecessary lookbehind scanning till the end of the haystack is neat!

The words 'Systems and Formalisms Lab' on three lines next to a red rectangle.
SYSTEMF @ EPFL · Adding lookbehinds to rust-lang/regex – SYSTEMF @ EPFL
More from SYSTEMF lab

I love Vim, but of the handful of things that bothers me about it is that its #regex engine requires you to escape capture groups and character count atoms. There's always \v but it's honestly kind of annoying to have to think about picking the right one lol.

#Vim is great, but mother Perl did that part better 😔

Replied in thread

@pkal no issue with #rx - I like it because its easy to reason what it does. I only don't use it all the time because when contributing to other packages some maintainers don't want additional requires unless really needed. It's interesting that #llm's presented with lisp go straight for the raw #emacs #regex syntax. It might have done a better job if I had asked for an rx form but at that point why bother?

Apropos of last weekends #emacs hacking. How many times would you ask an #llm to generate a #regex for you before you give up and just use a #rx form?

TIL: in Python's `re` module, a named group (like `(?P<name>...)` can have `_` in the name, but not `-`, because they need to be valid Python identifiers instead of just strings.

I've only been using regular expressions in Python since 1.x. 🤦

Hello #Fédiverse , quelqu'un aurait ça?

Delicious Food avec Amandine Chaignot au #Japon, (compte requis)

rmcbfmplay.com/info-programme/

Ou est arrivé à le capturer avec #ytdlp, je crois que le plugin /usr/lib/python3/dist-packages/yt_dlp/extractor/bfmtv.py est pas à jour avec la derrière forme d'URL et je sais pas mettre les mains dans le #Regex pour savoir si ça fonctionnerai.

Même connecté dans le navigateur pour la clé DRM. Fonctionne sur France TV.

RMC BFM PLAYRMC BFM ▶play
#Replay#MKV#RMC

Anführungszeichen ersetzen in Word

Ich stehe auf sorgfältige Typografie. Das habe ich in diesem Blog schon früher ausgeführt, nämlich hier und hier.

Word ist leider nicht auf die schönen Guillemets ausgerichtet. Aber man kann diese sehr einfach über die Suchen-Ersetzen-Funktion einfügen. Dazu nutzt man am einfachsten die Option Mit Mustervergleich, die eine Abwandlung von Grep darstellt.

Im Suchen-Ersetzen-Dialog von Word klickt man in der linken unteren Ecke auf Erweitern. Dann aktiviert man die Option Platzhalter verwenden, die der Option Mit Mustervergleich oder eben einem regulären Ausdruck entspricht.

Das Suchmuster unter Suchen nach zur Ersetzung von geraden Anführungszeichen („so“) durch Guillemets («so») lautet wie folgt:
"(?*)"

Der Code für das Feld Ersetzen durch sieht wie folgt aus:

«\1»

Bei einem Programm wie InDesign bei dem richtige Grep-Ausdrücke Verwendung finden, würde das Muster für den gleichen Zweck wie folgt lauten. Fürs Suchen:

"(.*?)"

Und fürs Ersetzen:

«$2»

Clickomania · Tüppogravieh und andere Kaphostrophen
More from Matthias

PSA:
Tired of your timeline getting full of people debating the merits of
#AI & #LLMs?

Add the following
#regex to your word mutes:
/\s.*LLM*./i

Now my timeline isn't full of the continuing debate as to whether an
#LLM is good or not.

(Hint: You can do the same thing for "AI" too!)