fork download
  1. import java.util.*
  2.  
  3. fun main(args: Array<String>) {
  4. val poemText = """
  5. Blow the candles real hard,
  6. Coz now you have aged,
  7. Don't pretend so much my dear,
  8. Don't behave so sage,
  9. Happy birthday to you,
  10. Have a nice day,
  11. Make the most of your day!"""
  12.  
  13. println(
  14. """(?m)^\h+"""
  15. .toRegex()
  16. .replace(poemText, "")
  17. )
  18. }
Success #stdin #stdout 0.12s 34616KB
stdin
Standard input is empty
stdout
Blow the candles real hard,
Coz now you have aged,
Don't pretend so much my dear,
Don't behave so sage,
Happy birthday to you,
Have a nice day,
Make the most of your day!