# URL that generated this code:# http://txt2re.com/index-ruby.php3?s=08:Nov:2018%20%22This%20is%20an%20Example!%22&-74
#!/usr/bin/ruby
txt='08:Nov:2018 "This is an Example!"'re1='.*?'# Non-greedy match on fillerre2='(o)'# Any Single Character 1re=(re1+re2)
m=Regexp.new(re,Regexp::IGNORECASE);
if m.match(txt)
c1=m.match(txt)[1];
puts "("<<c1<<")"<< "\n"
end
#-----# Paste the code into a new ruby file.# $ ruby x.ruby#-----