Answers.Body: <p>No, Sigil Clip Editor cannot use replace patterns. The way that Sigil Clips works is you highlight text, and then you apply the Clip.</p>
  
  <p>Your highlighted text will be grouped into:</p>
  
  <pre><code>\1
  </code></pre>
  
  <p>So let's say you highlight:</p>
  
  <p><code>This is text I |want in italics|.</code></p>
  
  <p>Clip: <code>&lt;i&gt;\1&lt;/i&gt;</code></p>
  
  <p><code>This is text I &lt;i&gt;want in italics&lt;/i&gt;.</code></p>
  
  <p>Clips are designed more as a one-button-push for redundant stuff (like pasting in template code for a figure with caption, etc. etc.)</p>
  
  <p>For example, mobileread user Tex2002ans created this Sigil Clip for himself:</p>
  
  <pre><code>&lt;div class="chart"&gt;
        &lt;div class="single-chart"&gt;
          &lt;div class="chart-title"&gt;&lt;/div&gt;
  
          &lt;div class="image"&gt;&lt;/div&gt;
  
          &lt;div class="chart-caption"&gt;&lt;/div&gt;
        &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>and then he can easily just insert the needed info/images.</p>
  
  <p>To do more advanced Search/Replace using Regex, you use <strong>Tools > Saved Searches</strong>.
  <a href="https://www.mobileread.com/forums/showthread.php?p=3808345#post3808345" rel="nofollow noreferrer">https://www.mobileread.com/forums/showthread.php?p=3808345#post3808345</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-02-14T23:12:08.607Z
Answers.LastActivityDate: 2019-02-14T23:12:08.607Z
Answers.UserDisplayName: Mavaddat Javid
Body: <p><a href="https://i.sstatic.net/aSBXj.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/aSBXj.png" alt="Clip Editor in Sigil"></a>
  I see that the Sigil Clip Editor has some basic regex (e.g., the first numbered group <code>\1</code> matches the entire selected text in the replace text and <code>\U</code> recalls the text with the entire selected text in uppercase), but I don't see any specification of the syntax for the Clip Editor. Does anyone know what the full range of regex available to the Clip Editor?
  Specifically, I am wondering if I can easily parse the selected text using regex pattern and replace it with some other text using the Clips functionality. </p>
  
Tags: <epub><sigil>
Title: Is regex available in Sigil clip editor?
UserDisplayName: Mavaddat Javid
ThreadText: # Is regex available in Sigil clip editor?
  
  (Asked by: username_0 on 2019-02-07)
  
  [![Clip Editor in Sigil](https://i.sstatic.net/aSBXj.png)](https://i.sstatic.net/aSBXj.png)
  I see that the Sigil Clip Editor has some basic regex (e.g., the first numbered group `\1` matches the entire selected text in the replace text and `\U` recalls the text with the entire selected text in uppercase), but I don't see any specification of the syntax for the Clip Editor. Does anyone know what the full range of regex available to the Clip Editor?
  Specifically, I am wondering if I can easily parse the selected text using regex pattern and replace it with some other text using the Clips functionality.
  
  **Tags:** epub, sigil
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2019-02-14. Score: 0 | Accepted answer
  
  No, Sigil Clip Editor cannot use replace patterns. The way that Sigil Clips works is you highlight text, and then you apply the Clip.
  Your highlighted text will be grouped into:
  \1
  
  So let's say you highlight:
  This is text I |want in italics|.
  Clip: \1
  This is text I want in italics.
  Clips are designed more as a one-button-push for redundant stuff (like pasting in template code for a figure with caption, etc. etc.)
  For example, mobileread user Tex2002ans created this Sigil Clip for himself:
  
        
          
  
          
  
          
        
  
  
  and then he can easily just insert the needed info/images.
  To do more advanced Search/Replace using Regex, you use Tools > Saved Searches.
  https://www.mobileread.com/forums/showthread.php?p=3808345#post3808345
  
  
  ---
  
  