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

String matching Operator short-hand inspired by CSS3

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.1.1
    • Fix Version/s: 3.0
    • Labels:
      None

      Description

      like the perl inspired shorthand "=~", css3 also has some nice shorthands

      http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#attribute-selectors

      for "startsWith" the shorthand could be "expr1 ^= expr2"
      for "endsWith" the shorthand could be "expr1 $= expr2"

      it could be that the "^=" operator already collides with "xor and assign" which i haven't looked at as of now.

        Attachments

          Activity

            People

            • Assignee:
              henrib Henri Biestro
              Reporter:
              alfredreibenschuh Alfred Reibenschuh
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: