commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <>
Subject [jira] [Commented] (LANG-830) FastDateParser could use \Q \E to quote regexes
Date Thu, 27 Sep 2012 11:16:07 GMT


Sebb commented on LANG-830:

The Pattern.quote() method can be used for this.
> FastDateParser could use \Q \E to quote regexes
> -----------------------------------------------
>                 Key: LANG-830
>                 URL:
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.time.*
>            Reporter: Sebb
>            Priority: Minor
> The escapeRegex method relies on knowing exactly what all the meta-characters are when
excaping text. This is potentially fragile.
> It would be a lot simpler to use the \Q \E quoting mechanism.
> There would need to be special handling for unquote==true.

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:

View raw message