example on how to use regexpr