Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-1645

Regcmp cant match unexpanded variable

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Rejected
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.x
    • Component/s: Built-in functions
    • Labels:
      None
    • Platform:
      Any

      Description

      I am having issues matching an unexpanded variable using regcmp.

      I am using @^\$([a-zA-Z0-9_.]+)$@ as my regex to match an unexpanded variable.

      It works in "my favourite online regex tool":http://regex101.com/r/vR3kQ8/1

        Attachments

          Activity

            People

            • Assignee:
              a10040 Kristian Amlie
              Reporter:
              a10042 Nick Anderson
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel