Check out v4 of the Fauna CLI

v4 of the Fauna CLI is now in beta.

The new version introduces enhancements to the developer experience, including an improved authentication workflow. To get started, check out the CLI v4 quick start.

String

String methods and properties.

Description

String methods and properties are provided for formatting and manipulating sequences of characters.

Instance properties

Property Description

Get the length of a String.

Instance methods

Method Description

Get the character located at the given index.

Aggressively convert the calling string to lower case.

Get the result of the concatenation of one or more Strings.

Test if a String ends with the given String.

Test if a String exists in another String.

Find if source string includes a string that matches a regex.

Get the index of the occurrence of a subString in the given String.

Get the index of the matching String given a regex.

Insert a String at a given location.

Get the last occurrence of a subString in a String.

Get the strings that match a given string or regex.

Get the location of the matching String.

Convert the calling string to a Double.

Convert the calling string of radix to an Int.

Convert the calling string of radix to a Long.

Convert the calling string to a Number.

Replace the first occurrence of a String.

Replace all occurrences of a String.

Replace all occurrences of a String matching the regular expression.

Replace occurrences of a String matching a regex.

Get the String segment given a starting index and ending index.

Split a String given a delimiter.

Split a String at the given index.

Get a list of Strings, using a regex as a delimiter.

Find if a String starts with the given String.

Convert the calling string to lower case.

Get the string representation of the value.

Convert the calling string to upper case.

Is this article helpful? 

Tell Fauna how the article can be improved:
Visit Fauna's forums or email docs@fauna.com

Thank you for your feedback!