commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Biestro (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (JEXL-46) adding Perl-like regular-expression operators
Date Thu, 07 Jan 2010 18:04:54 GMT

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

Henri Biestro resolved JEXL-46.
-------------------------------

    Resolution: Fixed

New Revision: 896944

URL: http://svn.apache.org/viewvc?rev=896944&view=rev
Log:
JEXL-46; adding Perl-like regular-expression operators (=~ and !~)

Modified:
    commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/Debugger.java
    commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/Interpreter.java
    commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/JexlArithmetic.java
    commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/parser/Parser.jjt
    commons/proper/jexl/trunk/src/test/java/org/apache/commons/jexl2/ArithmeticTest.java

Modified:
commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/Debugger.java
URL:
http://svn.apache.org/viewvc/commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/Debugger.java?rev=896944&r1=896943&r2=896944&view=diff


> 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
>             Fix For: Later
>
>
> 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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message