fork(1) download
  1. import re
  2. text = """# ---------------------------------------------------------------------------------------------------------------------
  3. # MODULE PARAMETERS
  4. # These are the variables we have to pass in to use the module specified in the terragrunt configuration above
  5. # ---------------------------------------------------------------------------------------------------------------------
  6.  
  7. Text goes here
  8. """
  9. print( re.sub(r'^# -+(?:\n# .*)*\n# -+$\n?', '', text, flags=re.M) )
Success #stdin #stdout 0.02s 9516KB
stdin
Standard input is empty
stdout
Text goes here