Strings and Characters
This page provides syntax for strings and characters in Julia as well as some of their associated functions. Each section includes an example to demonstrate the described syntax or function.
Characters and Strings
Char
is a single characterString
is a sequence of one or more characters (index values start at1
)
Some functions that can be performed on strings
Action | Function |
---|---|
get |
|
extract |
|
extract substring |
|
search for |
|
search for |
|
remove record separator from |
|
remove last character from |
|
Use typeof()
function to determine type
Input:
Output:
Resources
Julia Documentation: Manual - Strings
Julia Documentation: Base - Strings
Think Julia: Chapter 8 - Strings
Last updated