You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Henri Biestro (JIRA)" <ji...@apache.org> on 2015/08/21 16:03:46 UTC
[jira] [Commented] (JEXL-175) java.util.regex.Pattern creation
operator
[ https://issues.apache.org/jira/browse/JEXL-175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14706765#comment-14706765 ]
Henri Biestro commented on JEXL-175:
------------------------------------
Adding a new syntax for regexp adds lots of weight/complication when using a 'string'-based version is lighter and carries the same expressiveness power. In fact, the 'contains' operators ( ~= and ~!) already uses regexps under the hood when needed.
In general, the preferred way to add new feature is to use namespace/functors or overloading operators, not adding new syntax.
> java.util.regex.Pattern creation operator
> -----------------------------------------
>
> Key: JEXL-175
> URL: https://issues.apache.org/jira/browse/JEXL-175
> Project: Commons JEXL
> Issue Type: New Feature
> Reporter: Dmitri Blinov
> Priority: Minor
> Fix For: 3.0
>
>
> Introduce the pattern operator
> {code}
> ~/regex/
> {code}
> to create a java.util.regex.Pattern instance.
> The string inside slashes should not require to escape backslashes and quotes as in common string literals, so that regex would be more readable
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)