Skip to content
Prev 79954 / 398502 Next

getting last 2 charcters of a string, other "text" functions?

gsub(".*(..)$", "\\1", "i only want the last two characters")

This is only a matter of finding the right regular expression. Use Google to
find a good tutorial on them.

Carlos J. Gil Bellosta
http://www.datanalytics.com


Quoting t c <quantpm at yahoo.com>: