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

match vs match[] handling inconsistent for eachMatch vs. =~

    XMLWordPrintableJSON

Details

    Description

      string.eachMatch(pattern_str) { match ->
      found += match[0] + ' '
      }
      // but
      (string=~ pattern_str).each { match ->
      found += match + ' '
      }
      => match vs match[] handling inconsistent

      Attachments

        1. Groovy-1132.patch
          1 kB
          codex22
        2. Groovy1132Test.groovy
          0.6 kB
          codex22

        Issue Links

          Activity

            People

              paulk Paul King
              codevise Dierk König
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: