title: sed wildcard search replace
body: <p>I'm using sed on Centos, bash.</p>
  
  <p>I want to replace everything between \plain and }} with a space in the below line of text:</p>
  
  <pre><code>stuff here \plain \f2\fs20\cf2 4:21-23}} more stuff over here, could be anything.
  </code></pre>
  
  <p>The text between \plain and }} will vary (different numbers/numbers). How can I do a wildcard to include everything between \plain and }}.</p>
  
  <p>I was hoping a simple * would grab everything between the two but the wildcard in shell doesn't seem to work like this:</p>
  
  <pre><code>s/\\plain *}}/ /g;
  </code></pre>
  
  <p>The answer may be something incorporating this? [a-zA-Z0-9.] but that doesn't account for the backslashes, colons, and dashes in the text.</p>