commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LANG-841) Add StringUtils replaceAllPatternDotAll and removeAllPatternDotAll
Date Fri, 05 Oct 2012 09:27:03 GMT

    [ https://issues.apache.org/jira/browse/LANG-841?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13470193#comment-13470193
] 

Sebb commented on LANG-841:
---------------------------

JIRA description too terse - please explain purpose don't have to read patch.

Also, DOTALL is not an obvious name.
Might be worth stating in Javadoc that DOTALL means the same as Perl 'single-line' mode, i.e.
    removeAllPatternDotAll(source, regex, replacement)
has the same effect as
    source.replaceAll("(?s)"+regex, replacement);
                
> Add StringUtils replaceAllPatternDotAll and removeAllPatternDotAll
> ------------------------------------------------------------------
>
>                 Key: LANG-841
>                 URL: https://issues.apache.org/jira/browse/LANG-841
>             Project: Commons Lang
>          Issue Type: New Feature
>          Components: lang.*
>         Environment: Apache Maven 3.0.4 (r1232337; 2012-01-17 03:44:56-0500)
> Maven home: C:\Java\apache-maven-3.0.4\bin\..
> Java version: 1.6.0_35, vendor: Sun Microsystems Inc.
> Java home: C:\Program Files\Java\jdk1.6.0_35\jre
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
>            Reporter: Gary D. Gregory
>         Attachments: lang-841.diff
>
>
> Patch attached. 
> Feedback? Better method names?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message