if (stri_install_check(silent=TRUE))
stri_locate_all('XaaaaX',
regex=c('\\p{Ll}', '\\p{Ll}+', '\\p{Ll}{2,3}', '\\p{Ll}{2,3}?'))
if (stri_install_check(silent=TRUE))
stri_locate_all('Bartolini', fixed='i')
if (stri_install_check(silent=TRUE))
stri_locate_all('a b c', charclass='\\p{Zs}') # all white spaces
Run the code above in your browser using DataLab