#!/usr/bin/ruby
txt='08:Nov:2018 "This is an Example!"'
re1='.*?'
re2='(?:[a-z][a-z]+)'
re3='.*?'
re4='((?:[a-z][a-z]+))'
re5='(.)'
re=(re1+re2+re3+re4+re5)
m=Regexp.new(re,Regexp::IGNORECASE);
if m.match(txt)
word1=m.match(txt)[1];
c1=m.match(txt)[2];
puts "("<<word1<<")"<<"("<<c1<<")"<< "\n"
end
|