Skip to content

Consider using unicode regex in str_to_snake() and friends #592

@arnaudgallou

Description

@arnaudgallou

The new str_to_snake() and str_to_kebab() rely on non-unicode regex, which may not work in many languages:

stringr::str_to_snake("IlÉtaitUneFois")
#> [1] "ilétait_une_fois"

stringr::str_to_snake("ΜιαΦοράΚιΈνανΚαιρό")
#> [1] "μιαφοράκιένανκαιρό"

stringr::str_to_snake("ЖилиБыли")
#> [1] "жилибыли"

Created on 2025-09-24 with reprex v2.1.1

Could you consider using unicode regex instead?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions