JS Utils Kit
    Preparing search index...

    Variable SNAKE_CASE_REGEXConst

    SNAKE_CASE_REGEX: RegExp = ...

    Matches strict snake_case strings.

    A valid snake_case string:

    • Contains only lowercase letters (a-z) and numbers (0-9)
    • Words are separated by single underscores (_)
    • Does not start or end with an underscore
    • Does not contain consecutive underscores
    SNAKE_CASE_REGEX.test("hello_world"); // true
    SNAKE_CASE_REGEX.test("my_var_123"); // true
    SNAKE_CASE_REGEX.test("Hello_world"); // false
    SNAKE_CASE_REGEX.test("hello-world"); // false
    SNAKE_CASE_REGEX.test("_hello_world"); // false
    SNAKE_CASE_REGEX.test("hello__world"); // false