Uploaded image for project: 'Commons JEXL'
  1. Commons JEXL
  2. JEXL-46

adding Perl-like regular-expression operators

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: Later
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              alfred.reibenschuh@it-austria.com Alfred Reibenschuh
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: