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

String matching Operator short-hand inspired by CSS3

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 2.1.1
    • 3.0
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: