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

String.split() like String.split(/\w/)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 1.0-JSR-3
    • 1.5
    • groovy-jdk
    • None

    Description

      implement String.split() as split(/\w/)
      just for convenience an analogy to Ruby/Perl
      String.tokenize() also does the job as implemented but isn't as 'slick'

      Attachments

        1. Groovy-1114.patch
          1 kB
          codex22
        2. Groovy1114Test.groovy
          0.8 kB
          codex22

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: