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

regex with / and \ causes compilation error on 1.5.1

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.5.1
    • Fix Version/s: 1.5.2
    • Component/s: None
    • Labels:
      None
    • Environment:
      win xp sp2, also see below

      Description

      C:\>groovy -v
      Groovy Version: 1.5.1 JVM: 1.5.0_13-b05

      C:\>groovy -e "'foo/bar' =~ /\/|
      /"
      org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, script_from_command_line: 1: unexpected
      char: '\' @ line 1, column 19.
      1 error

      C:\>programs\Java\Groovy1.0\bin\groovy -v
      Groovy Version: 1.0 JVM: 1.5.0_13-b05

      C:\>programs\Java\Groovy1.0\bin\groovy -e "'foo/bar' =~ /\/|
      /"

      C:\>

        Attachments

          Activity

            People

            • Assignee:
              paulk Paul King
              Reporter:
              antti.karanta@napa.fi Antti Karanta
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: