How can I extract the extension of a file given a file path as a character? I know I can do this via regular expression regexpr("\.([[:alnum:]]+)$", x)
, but wondering if there's a built-in function to deal with this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…