fork download
  1. a <- c('(acetyl)RKJOEQLKQ', 'LDFEION(acetyl)EFNEOW')
  2. gsub('\\(acetyl\\)(.)', '(\\1)', a)
  3. # => [1] "(R)KJOEQLKQ" "LDFEION(E)FNEOW"
  4.  
Success #stdin #stdout 0.25s 39168KB
stdin
Standard input is empty
stdout
[1] "(R)KJOEQLKQ"     "LDFEION(E)FNEOW"