String methods
.to_uppercase()
string.to_uppercase() => String
// example
do val = "Where is Brian?"
do val.to_uppercase() // "WHERE IS BRIAN?".to_lowercase()
string.to_lowercase() => String
// example
do val = "Where is Brian?"
do val.to_lowercase() // "where is brian?".capitalize()
.trim(), .trim_left(), .trim_right()
.length()
.contains(String), .contains_regex(String)
.replace(), .replace_all(), .replace_regex()
.starts_with(String), .starts_with_regex(String)
.ends_with(String), .ends_with_regex(String)
.match(String), .match_regex(String)
.is_number(), .is_int(), .is_float()
.split(String)
.slice(start, end) => String
.to_int(), .to_float() => Integer, Float
.to_yml(), .to_json()
.encode_uri(), .encode_uri_component(), .decode_uri(), .decode_uri_component()
.encode_html_entities(), .decode_html_entities()
Last updated
Was this helpful?