title: PIG Script REPLACE with pipe symbol
body: <p>I want to strip characters outside of the curly brackets in rows that look like the following.</p>
  
  <pre><code>35|{......}|
  </code></pre>
  
  <p>Stripping the '35|' from the front and the trailing '|' from the end.</p>
  
  <pre><code>{.....}
  </code></pre>
  
  <p>Initially working on the first 3 characters, I try the following but it removes everything.</p>
  
  <pre><code> a = LOAD '/file' as (line1:chararray);
  
   b = FOREACH x generate REPLACE(line1, '35|','');
  
   dump b;
  </code></pre>
  
  <p>Any thoughts appreciated. Thanks.</p>