Skip to contents

All functions

str_after_nth() str_after_first() str_after_last() str_before_nth() str_before_first() str_before_last()
Extract text before or after nth occurrence of pattern.
str_extract_currencies() str_nth_currency() str_first_currency() str_last_currency()
Extract currency amounts from a string.
str_alphord_nums()
Make string numbers comply with alphabetical order.
str_before_last_dot()
Extract the part of a string before the last period.
str_can_be_numeric()
Check if a string could be considered as numeric.
str_detect_all() str_detect_any()
Detect any or all patterns.
str_elem()
Extract a single character from a string, using its index.
str_elems()
Extract several single elements from a string.
str_extract_non_numerics()
Extract non-numbers from a string.
str_extract_numbers()
Extract numbers from a string.
str_give_ext()
Ensure a file name has the intended extension.
str_locate_braces()
Locate the braces in a string.
str_locate_nth() str_locate_first() str_locate_last()
Locate the indices of the nth instance of a pattern.
str_match_arg() match_arg()
Argument Matching.
str_nth_non_numeric() str_first_non_numeric() str_last_non_numeric()
Extract the nth non-numeric substring from a string.
str_nth_number() str_first_number() str_last_number()
Extract the nth number from a string.
str_nth_number_after_mth() str_nth_number_after_first() str_nth_number_after_last() str_first_number_after_mth() str_last_number_after_mth() str_first_number_after_first() str_first_number_after_last() str_last_number_after_first() str_last_number_after_last()
Find the nth number after the mth occurrence of a pattern.
str_nth_number_before_mth() str_nth_number_before_first() str_nth_number_before_last() str_first_number_before_mth() str_last_number_before_mth() str_first_number_before_first() str_first_number_before_last() str_last_number_before_first() str_last_number_before_last()
Find the nth number before the mth occurrence of a pattern.
str_paste_elems()
Extract single elements of a string and paste them together.
str_remove_quoted()
Remove the quoted parts of a string.
str_singleize()
Remove back-to-back duplicates of a pattern in a string.
str_split_by_numbers()
Split a string by its numeric characters.
str_split_camel_case()
Split a string based on CamelCase.
str_to_vec()
Convert a string to a vector of characters
str_trim_anything()
Trim something other than whitespace
strex strex-package
strex: extra string manipulation functions