StringExt extension

Extensions on String

on

Properties

capitalize String

Available on String, provided by the StringExt extension

Capitalizes the first letter of each word in a string.
no setter
capitalizeFirst String

Available on String, provided by the StringExt extension

Converts the first letter of a string to uppercase and the rest to lowercase. Example: your name => Your name
no setter
extractNumeric String

Available on String, provided by the StringExt extension

Extracts the numeric value from a string. Example: OTP 12312 27/04/2020 => 1231227042020
no setter
isAlphabet bool

Available on String, provided by the StringExt extension

Determines whether a given string consists only of alphabetic characters. No whitespace is allowed.
no setter
isAPK bool

Available on String, provided by the StringExt extension

Determines whether a given string represents an APK file.
no setter
isAudio bool

Available on String, provided by the StringExt extension

Determines whether a given string represents an audio file.
no setter
isBinary bool

Available on String, provided by the StringExt extension

Determines whether a given string represents a valid binary number.
no setter
isCreditCardNumber bool

Available on String, provided by the StringExt extension

Determines whether a given string represents a valid credit card number. Credit card numbers must be numeric and follow the Luhn algorithm.
no setter
isCurrency bool

Available on String, provided by the StringExt extension

Determines whether a given string represents a valid currency amount.
no setter
isDate bool

Available on String, provided by the StringExt extension

Determines whether a given string represents a valid date. Dates must be in the format "YYYY-MM-DD".
no setter
isDateTime bool

Available on String, provided by the StringExt extension

Determines whether a given string represents a valid DateTime in either UTC or ISO8601 format.
no setter
isEmail bool

Available on String, provided by the StringExt extension

Determines whether a given string represents an email address.
no setter
isExcel bool

Available on String, provided by the StringExt extension

Determines whether a given string represents an Excel file.
no setter
isHexColorCode bool

Available on String, provided by the StringExt extension

Determines whether a given string represents a valid hexadecimal color code.
no setter
isImage bool

Available on String, provided by the StringExt extension

Determines whether a given string represents an image file.
no setter
isInt bool

Available on String, provided by the StringExt extension

Determines whether a given string consists only of integers. No doubles are included.
no setter
isMACAddress bool

Available on String, provided by the StringExt extension

Determines whether a given string represents a valid MAC address. MAC addresses must be in the format "XX:XX:XX:XX:XX:XX", where X is a hexadecimal digit (0-9, A-F).
no setter
isMD5 bool

Available on String, provided by the StringExt extension

Determines whether a given string represents a valid MD5 hash.
no setter
isNum bool

Available on String, provided by the StringExt extension

Determines whether a given string represents an integer or a double.
no setter
isPalindrome bool

Available on String, provided by the StringExt extension

Determines whether a given string is a palindrome.
no setter
isPassport bool

Available on String, provided by the StringExt extension

Determines whether a given string represents a valid passport number.
no setter
isPassword bool

Available on String, provided by the StringExt extension

Determines whether a given string represents a valid password. Passwords must have a minimum length of 8 characters and contain at least one uppercase letter, one lowercase letter, one digit, and one special character.
no setter
isPDF bool

Available on String, provided by the StringExt extension

Determines whether a given string represents a PDF file.
no setter
isPhoneNumber bool

Available on String, provided by the StringExt extension

Determines whether a given string represents a valid phone number. Phone numbers must be in the format "+phone number" and can contain digits, hyphens, spaces, or parentheses.
no setter
isPPT bool

Available on String, provided by the StringExt extension

Determines whether a given string represents a PowerPoint file.
no setter
isSHA1 bool

Available on String, provided by the StringExt extension

Determines whether a given string represents a valid SHA1 hash.
no setter
isSHA256 bool

Available on String, provided by the StringExt extension

Determines whether a given string represents a valid SHA256 hash.
no setter
isSSN bool

Available on String, provided by the StringExt extension

Determines whether a given string represents a valid Social Security Number (SSN).
no setter
isTime bool

Available on String, provided by the StringExt extension

Determines whether a given string represents a valid time. Times must be in the format "HH:MM" or "HH:MM:SS".
no setter
isTxt bool

Available on String, provided by the StringExt extension

Determines whether a given string represents a text file.
no setter
isURL bool

Available on String, provided by the StringExt extension

Determines whether a given string represents a URL.
no setter
isUsername bool

Available on String, provided by the StringExt extension

Determines whether a given string represents a valid username.
no setter
isVector bool

Available on String, provided by the StringExt extension

Determines whether a given string represents a vector file.
no setter
isVideo bool

Available on String, provided by the StringExt extension

Determines whether a given string represents a video file.
no setter
isWord bool

Available on String, provided by the StringExt extension

Determines whether a given string represents a Word file.
no setter
removeObjHex String

Available on String, provided by the StringExt extension

Removes the hex color code from an object's string.
no setter
removeWhitespace String

Available on String, provided by the StringExt extension

Removes all whitespace characters from a string. Example: your name => yourname
no setter