#regex — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #regex, aggregated by home.social.
-
Any #regex and #grep gurus able to help me understand something? I'm not the best with regex, trying to learn.
https://regex101.com/r/iHvpcJ/1
I'm trying to return the powered state of the wifi device from connman output. It seems like what I have here in regex101 should be returning the true or false state, but when I try to use the regex with grep I'm getting a warning:
`grep: warning: stray \ before N`
I'm struggling to figure out what I need to change to make it work with grep.
-
Any #regex and #grep gurus able to help me understand something? I'm not the best with regex, trying to learn.
https://regex101.com/r/iHvpcJ/1
I'm trying to return the powered state of the wifi device from connman output. It seems like what I have here in regex101 should be returning the true or false state, but when I try to use the regex with grep I'm getting a warning:
`grep: warning: stray \ before N`
I'm struggling to figure out what I need to change to make it work with grep.
-
Any #regex and #grep gurus able to help me understand something? I'm not the best with regex, trying to learn.
https://regex101.com/r/iHvpcJ/1
I'm trying to return the powered state of the wifi device from connman output. It seems like what I have here in regex101 should be returning the true or false state, but when I try to use the regex with grep I'm getting a warning:
`grep: warning: stray \ before N`
I'm struggling to figure out what I need to change to make it work with grep.
-
Any #regex and #grep gurus able to help me understand something? I'm not the best with regex, trying to learn.
https://regex101.com/r/iHvpcJ/1
I'm trying to return the powered state of the wifi device from connman output. It seems like what I have here in regex101 should be returning the true or false state, but when I try to use the regex with grep I'm getting a warning:
`grep: warning: stray \ before N`
I'm struggling to figure out what I need to change to make it work with grep.
-
Any #regex and #grep gurus able to help me understand something? I'm not the best with regex, trying to learn.
https://regex101.com/r/iHvpcJ/1
I'm trying to return the powered state of the wifi device from connman output. It seems like what I have here in regex101 should be returning the true or false state, but when I try to use the regex with grep I'm getting a warning:
`grep: warning: stray \ before N`
I'm struggling to figure out what I need to change to make it work with grep.
-
Tengo una hoja de cálculo con casi 640 celdas con contenidos de este tipo:
Explicación excelente (4)
blah (3)
…Quería extraer en número, puntuaciones de 0 a 4, para poder hacer medias y eso. Ha sido extraordinariamente fácil gracias a mis reducidisísimos conocimientos de expresiones regulares:
```
=REGEX(C3;”[0-4]”)y ¡chimpún! números extraidos.
-
Tengo una hoja de cálculo con casi 640 celdas con contenidos de este tipo:
Explicación excelente (4)
blah (3)
…Quería extraer en número, puntuaciones de 0 a 4, para poder hacer medias y eso. Ha sido extraordinariamente fácil gracias a mis reducidisísimos conocimientos de expresiones regulares:
```
=REGEX(C3;”[0-4]”)y ¡chimpún! números extraidos.
-
Tengo una hoja de cálculo con casi 640 celdas con contenidos de este tipo:
Explicación excelente (4)
blah (3)
…Quería extraer en número, puntuaciones de 0 a 4, para poder hacer medias y eso. Ha sido extraordinariamente fácil gracias a mis reducidisísimos conocimientos de expresiones regulares:
```
=REGEX(C3;”[0-4]”)y ¡chimpún! números extraidos.
-
Tengo una hoja de cálculo con casi 640 celdas con contenidos de este tipo:
Explicación excelente (4)
blah (3)
…Quería extraer en número, puntuaciones de 0 a 4, para poder hacer medias y eso. Ha sido extraordinariamente fácil gracias a mis reducidisísimos conocimientos de expresiones regulares:
```
=REGEX(C3;”[0-4]”)y ¡chimpún! números extraidos.
-
Tengo una hoja de cálculo con casi 640 celdas con contenidos de este tipo:
Explicación excelente (4)
blah (3)
…Quería extraer en número, puntuaciones de 0 a 4, para poder hacer medias y eso. Ha sido extraordinariamente fácil gracias a mis reducidisísimos conocimientos de expresiones regulares:
```
=REGEX(C3;”[0-4]”)y ¡chimpún! números extraidos.
-
Apparently, someone decided that 2021 was too short on pointless projects and crammed an entire #chess engine into a regex-based monstrosity 🤯. Because clearly, what chess *really* needs is a convoluted labyrinth of 84,688 regular expressions for that authentic "what am I doing with my life?" experience ♟️.
https://nicholas.carlini.com/writing/2025/regex-chess.html #regex #programming #humor #technews #HackerNews #ngated -
Apparently, someone decided that 2021 was too short on pointless projects and crammed an entire #chess engine into a regex-based monstrosity 🤯. Because clearly, what chess *really* needs is a convoluted labyrinth of 84,688 regular expressions for that authentic "what am I doing with my life?" experience ♟️.
https://nicholas.carlini.com/writing/2025/regex-chess.html #regex #programming #humor #technews #HackerNews #ngated -
Apparently, someone decided that 2021 was too short on pointless projects and crammed an entire #chess engine into a regex-based monstrosity 🤯. Because clearly, what chess *really* needs is a convoluted labyrinth of 84,688 regular expressions for that authentic "what am I doing with my life?" experience ♟️.
https://nicholas.carlini.com/writing/2025/regex-chess.html #regex #programming #humor #technews #HackerNews #ngated -
Apparently, someone decided that 2021 was too short on pointless projects and crammed an entire #chess engine into a regex-based monstrosity 🤯. Because clearly, what chess *really* needs is a convoluted labyrinth of 84,688 regular expressions for that authentic "what am I doing with my life?" experience ♟️.
https://nicholas.carlini.com/writing/2025/regex-chess.html #regex #programming #humor #technews #HackerNews #ngated -
Apparently, someone decided that 2021 was too short on pointless projects and crammed an entire #chess engine into a regex-based monstrosity 🤯. Because clearly, what chess *really* needs is a convoluted labyrinth of 84,688 regular expressions for that authentic "what am I doing with my life?" experience ♟️.
https://nicholas.carlini.com/writing/2025/regex-chess.html #regex #programming #humor #technews #HackerNews #ngated -
GitHub Actions token format `ghs_APPID_JWT` (~520 chars, variable length).
Regex
NEW: `ghs_[0-9]+_[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+`
OLD: `ghs_[A-Za-z0-9]{36}`
https://github.blog/changelog/2021-03-04-authentication-token-format-updates/
#GitHub #GitHubAction #GitHubServerToken #GitHubToken #Regex
-
GitHub Actions token format `ghs_APPID_JWT` (~520 chars, variable length).
Regex
NEW: `ghs_[0-9]+_[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+`
OLD: `ghs_[A-Za-z0-9]{36}`
https://github.blog/changelog/2021-03-04-authentication-token-format-updates/
#GitHub #GitHubAction #GitHubServerToken #GitHubToken #Regex
-
GitHub Actions token format `ghs_APPID_JWT` (~520 chars, variable length).
Regex
NEW: `ghs_[0-9]+_[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+`
OLD: `ghs_[A-Za-z0-9]{36}`
https://github.blog/changelog/2021-03-04-authentication-token-format-updates/
#GitHub #GitHubAction #GitHubServerToken #GitHubToken #Regex
-
GitHub Actions token format `ghs_APPID_JWT` (~520 chars, variable length).
Regex
NEW: `ghs_[0-9]+_[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+`
OLD: `ghs_[A-Za-z0-9]{36}`
https://github.blog/changelog/2021-03-04-authentication-token-format-updates/
#GitHub #GitHubAction #GitHubServerToken #GitHubToken #Regex
-
-
-
-
-
I always felt I had my safe zone with #regex. I'd only resort to "or", "geedy", and similar advanced options when absolutely necessary.
That was probably an error on my part. Pushing it a bit further probably would have eased a lot of routine text or data massage.
I keep returning to the fact that pre-learning yields higher productivity than just walk-up usability.
-
I always felt I had my safe zone with #regex. I'd only resort to "or", "geedy", and similar advanced options when absolutely necessary.
That was probably an error on my part. Pushing it a bit further probably would have eased a lot of routine text or data massage.
I keep returning to the fact that pre-learning yields higher productivity than just walk-up usability.
-
I always felt I had my safe zone with #regex. I'd only resort to "or", "geedy", and similar advanced options when absolutely necessary.
That was probably an error on my part. Pushing it a bit further probably would have eased a lot of routine text or data massage.
I keep returning to the fact that pre-learning yields higher productivity than just walk-up usability.
-
I always felt I had my safe zone with #regex. I'd only resort to "or", "geedy", and similar advanced options when absolutely necessary.
That was probably an error on my part. Pushing it a bit further probably would have eased a lot of routine text or data massage.
I keep returning to the fact that pre-learning yields higher productivity than just walk-up usability.
-
Yep. It's a SpamAssassin/Email/character set thing. Because character sets aren't reliable then the default behaviour is to leave it as-is and do byte matching.
https://stackoverflow.com/questions/49130946/spamassassin-matching-han-chinese-characters
Edit: Except that the docs say the default in 4.x is to enable the conversion. So apparently I'm just dealing with matching UTF-8 bytes rather than character codes 😑
-
Yep. It's a SpamAssassin/Email/character set thing. Because character sets aren't reliable then the default behaviour is to leave it as-is and do byte matching.
https://stackoverflow.com/questions/49130946/spamassassin-matching-han-chinese-characters
Edit: Except that the docs say the default in 4.x is to enable the conversion. So apparently I'm just dealing with matching UTF-8 bytes rather than character codes 😑
-
Yep. It's a SpamAssassin/Email/character set thing. Because character sets aren't reliable then the default behaviour is to leave it as-is and do byte matching.
https://stackoverflow.com/questions/49130946/spamassassin-matching-han-chinese-characters
Edit: Except that the docs say the default in 4.x is to enable the conversion. So apparently I'm just dealing with matching UTF-8 bytes rather than character codes 😑
-
Yep. It's a SpamAssassin/Email/character set thing. Because character sets aren't reliable then the default behaviour is to leave it as-is and do byte matching.
https://stackoverflow.com/questions/49130946/spamassassin-matching-han-chinese-characters
Edit: Except that the docs say the default in 4.x is to enable the conversion. So apparently I'm just dealing with matching UTF-8 bytes rather than character codes 😑
-
Yep. It's a SpamAssassin/Email/character set thing. Because character sets aren't reliable then the default behaviour is to leave it as-is and do byte matching.
https://stackoverflow.com/questions/49130946/spamassassin-matching-han-chinese-characters
Edit: Except that the docs say the default in 4.x is to enable the conversion. So apparently I'm just dealing with matching UTF-8 bytes rather than character codes 😑
-
I can't even get `[\x{0400}-\x{058F}]` to match (Cyrillic and Armenian characters) 🤨
-
I can't even get `[\x{0400}-\x{058F}]` to match (Cyrillic and Armenian characters) 🤨
-
I can't even get `[\x{0400}-\x{058F}]` to match (Cyrillic and Armenian characters) 🤨
-
I can't even get `[\x{0400}-\x{058F}]` to match (Cyrillic and Armenian characters) 🤨
-
I can't even get `[\x{0400}-\x{058F}]` to match (Cyrillic and Armenian characters) 🤨
-
🧠 #Regex doesn’t have to be scary. At #PSConfEU 2025, @[email protected] broke it down with: ✔ Match, replace, split ✔ Greedy vs lazy ✔ Real-world regex tips in #PowerShell & VS Code 🎟️ Early bird 2026 → psconf.eu #TextParsing #VSCode
- YouTube -
I was inspired to do this by the work "A German Word Family Dictionary" by Howard H. Keller (1978). The words (3000 I believe) are ordered alphabetically by root in that work.
Btw, if you want to get this book, get the print version. The ebook edition’s formatting is horribly fucked up to the point that it's useless. It's mangled OCR slop that was never reviewed by a human.
#german #deutsch #linguistics #language #regex #languageLearning
-
I was inspired to do this by the work "A German Word Family Dictionary" by Howard H. Keller (1978). The words (3000 I believe) are ordered alphabetically by root in that work.
Btw, if you want to get this book, get the print version. The ebook edition’s formatting is horribly fucked up to the point that it's useless. It's mangled OCR slop that was never reviewed by a human.
#german #deutsch #linguistics #language #regex #languageLearning
-
I was inspired to do this by the work "A German Word Family Dictionary" by Howard H. Keller (1978). The words (3000 I believe) are ordered alphabetically by root in that work.
Btw, if you want to get this book, get the print version. The ebook edition’s formatting is horribly fucked up to the point that it's useless. It's mangled OCR slop that was never reviewed by a human.
#german #deutsch #linguistics #language #regex #languageLearning
-
I was inspired to do this by the work "A German Word Family Dictionary" by Howard H. Keller (1978). The words (3000 I believe) are ordered alphabetically by root in that work.
Btw, if you want to get this book, get the print version. The ebook edition’s formatting is horribly fucked up to the point that it's useless. It's mangled OCR slop that was never reviewed by a human.
#german #deutsch #linguistics #language #regex #languageLearning
-
I was inspired to do this by the work "A German Word Family Dictionary" by Howard H. Keller (1978). The words (3000 I believe) are ordered alphabetically by root in that work.
Btw, if you want to get this book, get the print version. The ebook edition’s formatting is horribly fucked up to the point that it's useless. It's mangled OCR slop that was never reviewed by a human.
#german #deutsch #linguistics #language #regex #languageLearning
-
Many words feature two prefixes. I decided to consider the innermost prefix the "main" prefix, resulting in these sorts of groupings. #german #deutsch #linguistics #language #regex #languageLearning
-
Many words feature two prefixes. I decided to consider the innermost prefix the "main" prefix, resulting in these sorts of groupings. #german #deutsch #linguistics #language #regex #languageLearning