fork(1) download
  1. class Ideone {
  2. static void main(String[] args) {
  3. String s = "this is the text before\n\nFeel free to reply to this email if you have any further questions or concerns.\n\nTake Care! agent.first_name Vince tenege Customer Care ww.teneges.com #tenege"
  4. String t = s.replaceFirst(/(?s)Feel free to reply to this email.*/, "")
  5. print(t)
  6. }
  7. }
  8.  
Success #stdin #stdout 1.76s 119900KB
stdin
Standard input is empty
stdout
this is the text before