fork download
  1. txt <-"Name, Name. Title. Pub. Year; Details."
  2. sub(".*\\.([^.]*)(?:\\.[^.]*){2}$", "\\1", txt)
  3.  
Success #stdin #stdout 0.15s 175424KB
stdin
Standard input is empty
stdout
[1] " Pub"