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

New signature for String.replaceFirst( regex, closure )

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.7.7, 1.8-beta-4
    • groovy-jdk
    • None

    Description

      It would be helpful to have a signature of String.replaceFirst that accepts a closure as a parameter, as replaceAll does. This would make the two more parallel, and it's also helpful for the valid case where you want to do some processing on the match, but you don't want to run it more than once.

      Attachments

        Activity

          People

            paulk Paul King
            jjustice Josh Justice
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: