# URL that generated this code:
# http://txt2re.com/index-ruby.php3?s=11:Jan:2019%20%22This%20is%20an%20Example!%22&12&-34
#!/usr/bin/ruby
txt='11:Jan:2019 "This is an Example!"'
re1='(\\d+)' # Integer Number 1
re2='.*?' # Non-greedy match on filler
re3='(m)' # Any Single Word Character (Not Whitespace) 1
re=(re1+re2+re3)
m=Regexp.new(re,Regexp::IGNORECASE);
if m.match(txt)
int1=m.match(txt)[1];
w1=m.match(txt)[2];
puts "("<<int1<<")"<<"("<<w1<<")"<< "\n"
end
#-----
# Paste the code into a new ruby file.
# $ ruby x.ruby
#-----