fork download
  1. regexDrop = /String01|String2|\bEND\b/i #END\n/i
  2. a = "the long END not begin of line"
  3. b = "ENd" # <@><< need this one
  4. c = "END MORE WORDs"
  5. d =" EnD" # <@><< need this one
  6.  
  7. if a =~ regexDrop then puts "a__Match: " + a else puts 'a_' end
  8. if b =~ regexDrop then puts "b__Match: " + b else puts 'b_' end
  9. if c =~ regexDrop then puts "c__Match: " + c else puts 'c_' end
  10. if d =~ regexDrop then puts "d__Match: " + d else puts 'd_' end
Success #stdin #stdout 0.01s 7460KB
stdin
Standard input is empty
stdout
a__Match: the long END not begin of line
b__Match: ENd
c__Match: END MORE WORDs
d__Match:   EnD