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

Split string by Capital Case

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 1.6.4
    • None
    • syntax
    • None

    Description

      It would be cool if Groovy has ability to split String by Capital Case.

      Example:

      def fullName = "JackSparrow";
      def names = fullName.splitByCapitalCase();
      println names[0] + " " + names[1];    //print  "Jack Sparrow"
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            fenrir Donny A. Wijaya
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: