home.social

#regex — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #regex, aggregated by home.social.

  1. Any #regex and #grep gurus able to help me understand something? I'm not the best with regex, trying to learn.

    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.

  2. Any #regex and #grep gurus able to help me understand something? I'm not the best with regex, trying to learn.

    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.

  3. Any #regex and #grep gurus able to help me understand something? I'm not the best with regex, trying to learn.

    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.

  4. Any #regex and #grep gurus able to help me understand something? I'm not the best with regex, trying to learn.

    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.

  5. Any #regex and #grep gurus able to help me understand something? I'm not the best with regex, trying to learn.

    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.

  6. I lost count of how many reported 2-line entries I've just turned into single-row for ingestion to a new table.

    #Notepad++ was my first love, but #KATE (K Advanced Text Editor) has replaced it.

    #Regex really is a chainsaw...with no idle.

  7. I lost count of how many reported 2-line entries I've just turned into single-row for ingestion to a new table.

    #Notepad++ was my first love, but #KATE (K Advanced Text Editor) has replaced it.

    #Regex really is a chainsaw...with no idle.

  8. I lost count of how many reported 2-line entries I've just turned into single-row for ingestion to a new table.

    #Notepad++ was my first love, but #KATE (K Advanced Text Editor) has replaced it.

    #Regex really is a chainsaw...with no idle.

  9. I lost count of how many reported 2-line entries I've just turned into single-row for ingestion to a new table.

    #Notepad++ was my first love, but #KATE (K Advanced Text Editor) has replaced it.

    #Regex really is a chainsaw...with no idle.

  10. I lost count of how many reported 2-line entries I've just turned into single-row for ingestion to a new table.

    #Notepad++ was my first love, but #KATE (K Advanced Text Editor) has replaced it.

    #Regex really is a chainsaw...with no idle.

  11. 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.

    #regex #libreoffice #hojadecálculo

  12. 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.

    #regex #libreoffice #hojadecálculo

  13. 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.

    #regex #libreoffice #hojadecálculo

  14. 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.

    #regex #libreoffice #hojadecálculo

  15. 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.

    #regex #libreoffice #hojadecálculo

  16. 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 ♟️.
    nicholas.carlini.com/writing/2 #regex #programming #humor #technews #HackerNews #ngated

  17. 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 ♟️.
    nicholas.carlini.com/writing/2 #regex #programming #humor #technews #HackerNews #ngated

  18. 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 ♟️.
    nicholas.carlini.com/writing/2 #regex #programming #humor #technews #HackerNews #ngated

  19. 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 ♟️.
    nicholas.carlini.com/writing/2 #regex #programming #humor #technews #HackerNews #ngated

  20. 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 ♟️.
    nicholas.carlini.com/writing/2 #regex #programming #humor #technews #HackerNews #ngated

  21. Learning more #regex, but first setting terminal to comic sans

  22. Learning more #regex, but first setting terminal to comic sans

  23. Learning more #regex, but first setting terminal to comic sans

  24. Learning more #regex, but first setting terminal to comic sans

  25. 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.

  26. 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.

  27. 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.

  28. 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.

  29. 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.

    stackoverflow.com/questions/49

    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 😑

    #SpamAssassin #Regex

  30. 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.

    stackoverflow.com/questions/49

    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 😑

    #SpamAssassin #Regex

  31. 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.

    stackoverflow.com/questions/49

    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 😑

  32. 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.

    stackoverflow.com/questions/49

    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 😑

    #SpamAssassin #Regex

  33. 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.

    stackoverflow.com/questions/49

    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 😑

    #SpamAssassin #Regex

  34. I can't even get `[\x{0400}-\x{058F}]` to match (Cyrillic and Armenian characters) 🤨

    #SpamAssassin #Regex #WTF

  35. I can't even get `[\x{0400}-\x{058F}]` to match (Cyrillic and Armenian characters) 🤨

    #SpamAssassin #Regex #WTF

  36. I can't even get `[\x{0400}-\x{058F}]` to match (Cyrillic and Armenian characters) 🤨

  37. I can't even get `[\x{0400}-\x{058F}]` to match (Cyrillic and Armenian characters) 🤨

    #SpamAssassin #Regex #WTF

  38. I can't even get `[\x{0400}-\x{058F}]` to match (Cyrillic and Armenian characters) 🤨

    #SpamAssassin #Regex #WTF

  39. 🧠 #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

  40. 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

  41. 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

  42. 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

  43. shr @BasementDweller3000 ·

    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.

  44. 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

  45. 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

  46. 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