strex 2.1.0
CRAN release: 2026-07-05
BUG FIXES
- Numeric extraction functions (e.g.
str_extract_numbers(),str_nth_number(),str_nth_number_before_mth(),str_nth_number_after_mth(),str_extract_non_numerics(),str_nth_non_numeric(),str_split_by_numbers()) no longer error onNAinput or on strings with no matching number; they now correctly returnNA(#11).
strex 2.0.1
CRAN release: 2024-10-03
BUG FIXES
- Was using
str_glue()wherestr_glue_data()should have been used.
strex 1.6.1
CRAN release: 2023-10-30
BUG FIXES
- Minor documentation fix for
str_detect_any()andstr_detect_all().
strex 1.6.0
CRAN release: 2023-01-21
MINOR IMPROVEMENTS
- Remove usage of
magrittr’s%<>%operator. - Now using the new
rlang::abort()error message formatting.
strex 1.4.0
CRAN release: 2020-10-10
MINOR IMPROVEMENTS
-
str_trim_anything()got a speedup. -
str_match_arg()now has better error messaging.
strex 1.1.0
CRAN release: 2019-06-15
MINOR IMPROVEMENTS
- The
patternargument ofstr_trim_anything()now supports regular expression.
strex 1.0.0
CRAN release: 2019-05-04
BREAKING CHANGES
-
str_split_by_nums()has been renamed tostr_split_by_numbers()for consistency withstr_extract_numbers(). -
str_get_currencies()has been renamed tostr_extract_currencies()and been greatly improved. -
str_get_currency()has been replaced bystr_nth_currency()with siblingsstr_first_currency()andstr_last_currency(). -
str_match_arg()has been updated to behave more likebase::match_arg().
NEW FEATURES
-
str_elems()has been added. It is a vectorized version ofstr_elem(). - The number (and non-numeric) extraction functions can now deal with scientific notation and with comma-separated numbers. This makes
str_first_number()more versatile thanas.numeric()sinceas.numeric("1,000")returnsNAbutstr_first_number("1,000")returns the number 1000.
