String Functions
https://en.wikipedia.org/wiki/Comparison_of_programming_languages_(string_functions)
String Functions
- Alteryx
- SDU
- SQL Server
Alteryx
Contains(String, Target, CaseInsensitive=1)
CountWords(String)
DecomposeUnicodeForMatch(String)
EndsWith(String, Target, CaseInsensitive=1)
FindString(String,Target)
GetWord(String, n)
Left(x, len)
Length(x)
LowerCase(x)
MD5_ASCII(String)
MD5_UNICODE(String)
PadLeft (str, len, char)
PadRight (str, len, char)
REGEX_CountMatches(string,pattern,icase)
REGEX_Match(string,pattern,icase)
REGEX_Replace(string, pattern, replace,icase)
Replace(Str, Target, Replacement)
ReplaceChar(x, y, z)
ReplaceFirst(Str, Target, Replacement)
ReverseString(Str)
Right(String, len)
StartsWith(String, Target, CaseInsensitive=1)
STRCSPN(x, y)
StripQuotes(x)
STRSPN(x, y)
Substring(x, start, length)
TitleCase(x)
Trim(x, y)
TrimLeft(x, y)
TrimRight(x, y)
Uppercase(x) Converts a string to upper case
UuidCreate()
Sql Down Under
AlphabeticOnly
- Removes any non-alphabetic characters from a stringAlphanumericOnly
- Removes any non-alphanumeric characters from a stringAsciiOnly
- Removes non-ASCII characters from a stringCamelCase
- Converts a string to camelCaseCobolCase
- Converts a string to COBOL-CASECountWords
- Counts the number of words in a stringDigitsOnly
- Removes non-digit characters from a stringExtractToken
- Extracts a specific token number from a delimited string like a CSV or TSVExtractTrigrams
- Extracts trigrams (segments of up to 3 characters) from a string for fast searchingExtractTrimmedWords
- Extracts words from a string and trims themInitialsFromName
- Extracts a person's initials from their nameInvertString
- Returns an upside down version of the stringKebabCase
- Converts a string to kebab-caseLeftPad
- Left pads a stringNullIfBlank
- Returns NULL if a string is blank or trims the stringPascalCase
- Converts a string to PascalCasePercentEncode
- Encodes reserved characters that are used in HTML or URL encodingPreviousNonWhitespaceCharacter
- Finds the previous non-whitespace character working backwards from the current positionProperCase
- Converts a string to Proper CaseQuoteString
- Quotes a stringRightPad
- Right pads a stringScreamingSnakeCase
- Converts a string to SCREAMING_SNAKE_CASESeparateByCase
- Inserts spaces in Pascal-cased or camel-cased stringsSingleSpaceWords
- Trims a string and replaces multiple spaces with single spacesSnakeCase
- Converts a string to snake_caseSplitDelimitedString
- Splits a delimited string (often CSV or TSV)SplitDelimitedStringIntoColumns
- Splits a delimited string (often CSV or TSV) into separate columnsSpongeBobSnakeCase
- Converts a string to sPoNgEbOb_sNaKeCaSeStringLength
- Returns the length of a string (Properly)StripDiacritics
- Strips diacritics (accents, graves, etc.) from a stringTitleCase
- Converts a string to Title CaseTrainCase
- Converts a string to Train-CaseTranslate
- Replaces a set of characters in a stringTrimWhitespace
- Removes any leading or trailing space, tab, carriage return, and linefeed charactersXMLDecodeString
- XML decodes a stringXMLEncodeString
- XML encodes a string
Sql Server
ASCII
Returns the ASCII value for the specific characterCHAR
Returns the character based on the ASCII codeCHARINDEX
Returns the position of a substring in a stringCONCAT
Adds two or more strings togetherConcat with +
Adds two or more strings togetherCONCAT_WS
Adds two or more strings together with a separatorDATALENGTH
Returns the number of bytes used to represent an expressionDIFFERENCE
Compares two SOUNDEX values, and returns an integer valueFORMAT
Formats a value with the specified formatLEFT
Extracts a number of characters from a string (starting from left)LEN
Returns the length of a stringLOWER
Converts a string to lower-caseLTRIM
Removes leading spaces from a stringNCHAR
Returns the Unicode character based on the number codePATINDEX
Returns the position of a pattern in a stringQUOTENAME
Returns a Unicode string with delimiters added to make the string a valid SQL Server delimited identifierREPLACE
Replaces all occurrences of a substring within a string, with a new substringREPLICATE
Repeats a string a specified number of timesREVERSE
Reverses a string and returns the resultRIGHT
Extracts a number of characters from a string (starting from right)RTRIM
Removes trailing spaces from a stringSOUNDEX
Returns a four-character code to evaluate the similarity of two stringsSPACE
Returns a string of the specified number of space charactersSTR
Returns a number as stringSTUFF
Deletes a part of a string and then inserts another part into the string, starting at a specified positionSUBSTRING
Extracts some characters from a stringTRANSLATE
Returns the string from the first argument after the characters specified in the second argument are translated into the characters specified in the third argument.TRIM
Removes leading and trailing spaces (or other specified characters) from a stringUNICODE
Returns the Unicode value for the first character of the input expressionUPPER
Converts a string to upper-case