title: How to remove all ocurrences of a substring containing unknown characters?
body: <p>Typically, you would remove all substrings from a string using the following expression:</p>
  
  <pre class="lang-vb prettyprint-override"><code>text.Replace(" uipath_custom_id=""587""","")
  </code></pre>
  
  <p>This gets rid of all substrings within the string, and doesn't throw an exception when there aren't any such substrings.</p>
  
  <p>But what if I have unknown characters between the quotes? How can I achieve the same results when there are unknown characters?</p>
  
  <p>This is the string I want to process. Sometimes it contains multiple " uipath_custom_id=""587""" substrings, and sometimes none.</p>
  
  <pre><code>outerhtml='&lt;div class="_3_7SH _3DFk6 message-out" uipath_custom_id="567"&gt;&lt;div class="Tkt2p"&gt;&lt;div class="copyable-text" data-pre-plain-text="[9:42 AM, 5/15/2019] sash: "&gt;&lt;div class="_3zb-j ZhF0n"&gt;&lt;span dir="ltr" class="selectable-text invisible-space copyable-text"&gt;Hello World!&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="_2f-RV"&gt;&lt;div class="_1DZAH" role="button"&gt;&lt;span class="_3EFt_"&gt;9:42 AM&lt;/span&gt;&lt;div class="_32uRw"&gt;&lt;span data-icon="msg-time" class=""&gt;&lt;svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 15" width="16" height="15"&gt;&lt;path fill="#859479" d="M9.75 7.713H8.244V5.359a.5.5 0 0 0-.5-.5H7.65a.5.5 0 0 0-.5.5v2.947a.5.5 0 0 0 .5.5h.094l.003-.001.003.002h2a.5.5 0 0 0 .5-.5v-.094a.5.5 0 0 0-.5-.5zm0-5.263h-3.5c-1.82 0-3.3 1.48-3.3 3.3v3.5c0 1.82 1.48 3.3 3.3 3.3h3.5c1.82 0 3.3-1.48 3.3-3.3v-3.5c0-1.82-1.48-3.3-3.3-3.3zm2 6.8a2 2 0 0 1-2 2h-3.5a2 2 0 0 1-2-2v-3.5a2 2 0 0 1 2-2h3.5a2 2 0 0 1 2 2v3.5z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;'
  </code></pre>