title: How to replace text for some properties using jolt
body: <p>I'm using jolt in order to do some transformations, I've been able to do that but I'm having some issues trying to replace some text in some properties of my JSON file.</p>
  <p>I tried to split the value by / and then concat the part I need with an additional text, unfortunately, that's not working.</p>
  <p>Input JSON</p>
  <pre class="lang-json prettyprint-override"><code>{
    &quot;components&quot;: {
      &quot;values&quot;: {
        &quot;value1&quot;: {
          &quot;$path&quot;: &quot;1/2/3/bear&quot;
        },
        &quot;value2&quot;: {
          &quot;$path&quot;: &quot;1/2/3/cat&quot;
        },
        &quot;value3&quot;: {
          &quot;$path&quot;: &quot;1/2/3/lion&quot;
        }
      }
    }
  }
  </code></pre>
  <p>I want to add '#/myvalue/' to each $path value using the last part of it.</p>
  <p>Expected result</p>
  <pre class="lang-json prettyprint-override"><code>{
    &quot;components&quot;: {
      &quot;values&quot;: {
        &quot;value1&quot;: {
          &quot;$path&quot;: &quot;#/myvalue/bear&quot;
        },
        &quot;value2&quot;: {
          &quot;$path&quot;: &quot;#/myvalue/cat&quot;
        },
        &quot;value3&quot;: {
          &quot;$path&quot;: &quot;#/myvalue/lion&quot;
        }
      }
    }
  }
  </code></pre>
  <p>I tried the following one approach in order to take the value but it's not working as expected.</p>
  <pre class="lang-json prettyprint-override"><code> [
    {
      &quot;operation&quot;: &quot;shift&quot;,
      &quot;spec&quot;: {
        &quot;components&quot;: {
          &quot;values&quot;: {
            &quot;*&quot;: {
              &quot;\\$path&quot;: { //This key has de $ sign
                &quot;*/*/*/*&quot;: {
                  &quot;$(0,4)&quot;: &quot;\\$path&quot; //I need to take the four part and assign that to the \\path value
                }
              }
            }
          }
        }
      }
    },
    {
      &quot;operation&quot;: &quot;modify-overwrite-beta&quot;,
      &quot;spec&quot;: {
        &quot;components&quot;: {
          &quot;values&quot;: {
            &quot;*&quot;: {
              &quot;\\$path&quot;: &quot;=concat('#/myvalue/', @(1,\\$path))&quot;
            }
          }
        }
      }
    }
  ]
  </code></pre>