title: Why does complex condition not work in gitlab-ci?
body: <p>I have below code:</p>
  <pre><code>build:
    stage: build
    rules: 
      - if: '$CI_COMMIT_TAG =~ /RELEASE/ &amp;&amp; $CI_COMMIT_TAG =~ $CI_JOB_NAME'
        when: always  
    tags:
      - test_ios_msb
    script: 
      - echo $CI_COMMIT_REF_NAME
      - echo $CI_COMMIT_BRANCH
      - echo $CI_COMMIT_TAG
      - echo $CI_JOB_NAME 
      - echo $CI_PIPELINE_SOURCE
      - echo $CI_BUILD_TAG
      - echo &quot;ok&quot;
  </code></pre>
  <p>in this case the condition does not work
  if you specify this condition:
  <code>- if: '$CI_COMMIT_TAG =~ /RELEASE/'</code>
  or like this:
  <code>- if: '$CI_COMMIT_TAG =~ $CI_JOB_NAME'</code>
  then the condition works</p>
  <p>Tell me how to solve the problem?</p>