String Functions: Remaining Unclassified functions
NULL
(): Returns a Null valueUuidCreate
(): Creates a Unique identifier.swapcase
() Swaps cases, lower case becomes upper case and vice versaupper
() Converts a string into upper caseisnumeric
() Returns True if all characters in the string are numericisdecimal
() Returns True if all characters in the string are decimalsistitle
() Returns True if the string follows the rules of a titleisupper
() Returns True if all characters in the string are upper caseislower
() Returns True if all characters in the string are lower caseisalpha
() Returns True if all characters in the string are in the alphabetisdigit
() Returns True if all characters in the string are digitsisidentifier
() Returns True if the string is an identifier
Standard string operations
zfill
() Fills the string with a specified number of 0 values at the beginningtrim
() Returns a trimmed version of the stringltrim
() Returns a trimmed version of the stringrtrim
() Returns a trimmed version of the stringreserved:
strip
(x) Returns a string with matching areas removed, e.g. remove spaces, removereplace
() Returns a string where a specified value is replaced with a specified valuerfind
() Searches the string for a specified value and returns the last position of where it was foundrindex
() Searches the string for a specified value and returns the last position of where it was foundlpad
rpad
rjust
() Returns a right justified version of the stringrpartition
() Returns a tuple where the string is parted into three partsrsplit
() Splits the string at the specified separator, and returns a listrstrip
() Returns a right trim version of the stringsplit
() Splits the string at the specified separator, and returns a listsplitlines
() Splits the string at line breaks and returns a liststartswith
() Returns true if the string starts with the specified valuetitle
() Converts the first character of each word to upper casetranslate
() Returns a translated stringformat
() Formats specified values in a stringformat_map
() Formats specified values in a stringindex
() Searches the string for a specified value and returns the position of where it was foundisalnum
() Returns True if all characters in the string are alphanumericisalpha
() Returns True if all characters in the string are in the alphabetisdecimal
() Returns True if all characters in the string are decimalsisdigit
() Returns True if all characters in the string are digitsisidentifier
() Returns True if the string is an identifierislower
() Returns True if all characters in the string are lower caseisnumeric
() Returns True if all characters in the string are numericisprintable
() Returns True if all characters in the string are printableisspace
() Returns True if all characters in the string are whitespacesistitle
() Returns True if the string follows the rules of a titleisupper
() Returns True if all characters in the string are upper casejoin
() Joins the elements of an iterable to the end of the stringljust
() Returns a left justified version of the stringlower
() Converts a string into lower caselstrip
() Returns a left trim version of the stringmaketrans
() Returns a translation table to be used in translationspartition
() Returns a tuple where the string is parted into three partsreplace
() Returns a string where a specified value is replaced with a specified valuerfind
() Searches the string for a specified value and returns the last position of where it was foundrindex
() Searches the string for a specified value and returns the last position of where it was foundrjust
() Returns a right justified version of the stringrpartition
() Returns a tuple where the string is parted into three partsrsplit
() Splits the string at the specified separator, and returns a listrstrip
() Returns a right trim version of the stringsplit
() Splits the string at the specified separator, and returns a listsplitlines
() Splits the string at line breaks and returns a liststartswith
() Returns true if the string starts with the specified valuestrip
() Returns a trimmed version of the stringswapcase
() Swaps cases, lower case becomes upper case and vice versatitle
() Converts the first character of each word to upper casetranslate
() Returns a translated stringupper
() Converts a string into upper casezfill
() Fills the string with a specified number of 0 values at the beginningclose
() Closes the filedetach
() Returns the separated raw stream from the bufferfileno
() Returns a number that represents the stream, from the operating system's perspectiveflush
() Flushes the internal bufferisatty
() Returns whether the file stream is interactive or notread
() Returns the file contentreadable
() Returns whether the file stream can be read or notreadline
() Returns one line from the filereadlines
() Returns a list of lines from the fileseek
() Change the file positionseekable
() Returns whether the file allows us to change the file positiontell
() Returns the current file positiontruncate
() Resizes the file to a specified sizewritable
() Returns whether the file can be written to or notwrite
() Writes the specified string to the filewritelines
() Writes a list of strings to the fileabs
() Returns the absolute value of a numberall
() Returns True if all items in an iterable object are trueany
() Returns True if any item in an iterable object is trueascii
() Returns a readable version of an object. Replaces none-ascii characters with escape characterbin
() Returns the binary version of a numberbool
() Returns the boolean value of the specified objectbytearray
() Returns an array of bytesbytes
() Returns a bytes objectcallable
() Returns True if the specified object is callable, otherwise Falsechr
() Returns a character from the specified Unicode code.classmethod
() Converts a method into a class methodcompile
() Returns the specified source as an object, ready to be executedcomplex
() Returns a complex numberdelattr
() Deletes the specified attribute (property or method) from the specified objectdict
() Returns a dictionary (Array)dir
() Returns a list of the specified object's properties and methodsdivmod
() Returns the quotient and the remainder when argument1 is divided by argument2enumerate
() Takes a collection (e.g. a tuple) and returns it as an enumerate objecteval
() Evaluates and executes an expressionexec
() Executes the specified code (or object)filter
() Use a filter function to exclude items in an iterable objectfloat
() Returns a floating point numberformat
() Formats a specified valuegetattr
() Returns the value of the specified attribute (property or method)globals
() Returns the current global symbol table as a dictionaryhasattr
() Returns True if the specified object has the specified attribute (property/method)hash
() Returns the hash value of a specified objecthelp
() Executes the built-in help systemhex
() Converts a number into a hexadecimal valueid
() Returns the id of an objectinput
() Allowing user inputint
() Returns an integer numberisinstance
() Returns True if a specified object is an instance of a specified objectissubclass
() Returns True if a specified class is a subclass of a specified objectiter
() Returns an iterator objectlen
() Returns the length of an objectlist
() Returns a listlocals
() Returns an updated dictionary of the current local symbol tablemap
() Returns the specified iterator with the specified function applied to each itemmax
() Returns the largest item in an iterablememoryview
() Returns a memory view objectmin
() Returns the smallest item in an iterablenext
() Returns the next item in an iterableobject
() Returns a new objectoct
() Converts a number into an octalopen
() Opens a file and returns a file objectord
() Convert an integer representing the Unicode of the specified characterpow
() Returns the value of x to the power of yprint
() Prints to the standard output deviceproperty
() Gets, sets, deletes a propertyrange
() Returns a sequence of numbers, starting from 0 and increments by 1 (by default)repr
() Returns a readable version of an objectreversed
() Returns a reversed iteratorround
() Rounds a numbersset
() Returns a new set objectsetattr
() Sets an attribute (property/method) of an objectslice
() Returns a slice objectsorted
() Returns a sorted list@staticmethod
() Converts a method into a static methodstr
() Returns a string objectsum
() Sums the items of an iteratorsuper
() Returns an object that represents the parent classtuple
() Returns a tupletype
() Returns the type of an objectvars
() Returns the dict property of an objectzip
() Returns an iterator, from two or more iteratorsString()
Creates a new String object. It performs type conversion when called as a function, rather than as a constructor, which is usually more useful.String.raw()
- Returns a string created from a raw template string. For most languages, this will return the same as toLowerCase(). For most languages, this will return the same as toUpperCase().String.prototype.toLowerCase()-
Returns the calling string value converted to lowercase.String.prototype.toString()
- Returns a string representing the specified object. Overrides the Object.prototype.toString() method.String.prototype.toUpperCase()
- Returns the calling string value converted to uppercase.String.prototype.trim()
- Trims whitespace from the beginning and end of the string. Part of the ECMAScript 5 standard.String.prototype.trimStart()
- Trims whitespace from the beginning of the string.String.prototype.trimEnd()
- Trims whitespace from the end of the string.String.prototype.valueOf()
- Returns the primitive value of the specified object. Overrides the Object.prototype.valueOf() method.String.prototype.@@iterator()
- Returns a new iterator object that iterates over the code points of a String value, returning each code point as a String value.String.prototype.anchor()
<a name="name">
(hypertext target)String.prototype.big()
<big>
String.prototype.blink()
<blink>
String.prototype.bold()
<b>
String.prototype.fixed()
<tt>
String.prototype.fontcolor()
<font color="color">
String.prototype.fontsize()
<font size="size">
String.prototype.italics()
<i>
String.prototype.link()
<a href="url">
(link to URL)String.prototype.small()
<small>
String.prototype.strike()
<strike>
String.prototype.sub()
<sub>
String.prototype.sup()
<sup>
charAt()
Returns the character at the specified index (position)charCodeAt()
Returns the Unicode of the character at the specified indexconcat()
Joins two or more strings, and returns a new joined stringsendsWith()
Checks whether a string ends with specified string/charactersfromCharCode()
Converts Unicode values to charactersincludes()
Checks whether a string contains the specified string/charactersindexOf()
Returns the position of the first found occurrence of a specified value in a stringlastIndexOf()
Returns the position of the last found occurrence of a specified value in a stringlocaleCompare()
Compares two strings in the current localematch()
Searches a string for a match against a regular expression, and returns the matchesrepeat()
Returns a new string with a specified number of copies of an existing stringreplace()
Searches a string for a specified value, or a regular expression, and returns a new string where the specified values are replacedsearch()
Searches a string for a specified value, or regular expression, and returns the position of the matchslice()
Extracts a part of a string and returns a new stringsplit()
Splits a string into an array of substringsstartsWith()
Checks whether a string begins with specified characterssubstr()
Extracts the characters from a string, beginning at a specified start position, and through the specified number of charactersubstring()
Extracts the characters from a string, between two specified indicestoLocaleLowerCase()
Converts a string to lowercase letters, according to the host's localetoLocaleUpperCase()
Converts a string to uppercase letters, according to the host's localetoLowerCase()
Converts a string to lowercase letterstoString()
Returns the value of a String objecttoUpperCase()
Converts a string to uppercase letterstrim()
Removes whitespace from both ends of a stringvalueOf()
Returns the primitive value of a String objectrandom()
Returns a random number between 0 and 1compile()
Deprecated in version 1.5. Compiles a regular expressionexec()
Tests for a match in a string. Returns the first matchtest()
Tests for a match in a string. Returns true or falsetoString()
Returns the string value of the regular expression(string.)
match()
(string.)
matchAll()