replaceNonAlphaNumericWithUnderscore method

String replaceNonAlphaNumericWithUnderscore()

Replaces all non-alphanumeric characters with underscores.

Implementation

String replaceNonAlphaNumericWithUnderscore() =>
    validate().replaceAll(RegExp(r'[^a-zA-Z0-9]'), '_');