clean_int_str
No overview available.
def clean_int_str(
value: string
) - > string
Cleans a string representation of an integer by removing non-numeric characters and whitespace. Use this to sanitize raw input before converting it to a numeric type.
Parameters
| Name | Type | Description |
|---|---|---|
| value | string | The raw input string containing the integer value to be cleaned. |
Returns
| Type | Description |
|---|---|
string | The sanitized string containing only numeric digits, or an empty string if no digits were found. |