Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-3149

quotes that don't require escape of special characters

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.7, 1.6-beta-2
    • None
    • syntax
    • None

    Description

      Hallo

      very useful would be to have quotes that don't require you to escape $ \ and other characters. Of course one needs to ensure the data doesn't contain quotes from the same type.

      For example one can say:
      def str = ''''<echo message="${hallo}"/>''''
      println str;

      And output be:
      <echo message="${hallo}"/>

      instead of no such property "hallo" for...

      Another more useful example of such quotes usage is writing regular expressions. I have really hard time figuring out how to escape characters there!

      Attachments

        Activity

          People

            paulk Paul King
            avalon A
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: