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

adding Perl-like regular-expression operators

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0
    • 2.0
    • 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

            henrib Henri Biestro
            alfred.reibenschuh@it-austria.com Alfred Reibenschuh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: