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 2021/06/29 07:00:03 UTC

[jira] [Closed] (JEXL-46) adding Perl-like regular-expression operators

     [ https://issues.apache.org/jira/browse/JEXL-46?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henri Biestro closed JEXL-46.
-----------------------------

> adding Perl-like regular-expression operators
> ---------------------------------------------
>
>                 Key: JEXL-46
>                 URL: https://issues.apache.org/jira/browse/JEXL-46
>             Project: Commons JEXL
>          Issue Type: New Feature
>    Affects Versions: 2.0
>            Reporter: Alfred Reibenschuh
>            Assignee: Henri Biestro
>            Priority: Major
>             Fix For: 2.0
>
>
> would it be possible to add the perl-like "=~" and "!~" operators to JEXL ?
> to be used like:
> -----------------------------
> str="this is in here";
> if(str =~ 'is\s+in')
> {
>  // true here
> }
> -----------------------------
> or the simple (true) expressions:
> "this is in here" =~ 'is\s+in'
> "this is in here" !~ 'not'
> i know i could use "str.match(pattern)" but for simple users of an application that like to enter simple expressions "=~" and "!~" would do it without learning java string object methods.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)