regex golf – suggestions?
作者在尝试用不超过62个字符的正则表达式匹配特定字符串(如arraigning、ananna)并排除其他字符串(如edified、cabbage)时遇到困难,寻求解决方案。 2025-6-8 10:0:27 Author: www.reddit.com(查看原文) 阅读量:17 收藏

Hi everyone,

I'm facing a regex challenge with a strict length limit of 62 characters. The goal is to match a set of strings like:

✅ `arraigning, ananna, intestines, deed, i`

❌ and reject others like `edified, cabbage, museums, rototiller`.

I've tried multiple strategies: character repetition, mirroring, and conditional recursion via the `regex` module (not `re`), but I either exceed the limit or get mismatches.

Anyone has clever ideas or obscure tricks to fit a working pattern under the limit?

Any help is appreciated �


文章来源: https://www.reddit.com/r/netsecstudents/comments/1l68l13/regex_golf_suggestions/
如有侵权请联系:admin#unsafe.sh