RegexStringExtensions extension

on

Methods

extractDigits() String

Available on String, provided by the RegexStringExtensions extension

Extracts all numerical digits from the string and returns them as a new string.
getWords() List<String>

Available on String, provided by the RegexStringExtensions extension

Extracts all individual words from the string based on word boundaries.
isDigitsOnly() bool

Available on String, provided by the RegexStringExtensions extension

Checks if the entire string consists only of numerical digits (0-9).
isTextOnly() bool

Available on String, provided by the RegexStringExtensions extension

Checks if the entire string consists only of alphabet letters (a-z, A-Z).
removeAllDigits() String

Available on String, provided by the RegexStringExtensions extension

Removes all numerical digits (0-9) from the string.
removeAllWhiteSpaces() String

Available on String, provided by the RegexStringExtensions extension

Removes all whitespace characters (spaces, tabs, newlines) from the string.
removeAllWordsStartingWithNumber() String

Available on String, provided by the RegexStringExtensions extension

Removes all words that begin with a number (e.g., '3rd', '10users', '4u').
splitByUpperCase() List<String>

Available on String, provided by the RegexStringExtensions extension

Splits a string into a list of substrings whenever an uppercase letter is encountered.