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

consistency of the regex apis: replaceFirst with Closure

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.7.5
    • 1.7.7, 1.8-beta-4
    • None
    • None

    Description

      The GDK provides Closure-using methods

      String.replaceAll(String x) {}  // in GDK 
      String.replaceAll(Pattern x) {} // in GDK 
      

      but fails to provide for consistency

      String.replaceFirst(String x)  {} // missing in GDK 
      String.replaceFirst(Pattern x) {} // missing in GDK 
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: