title: How to replace numbered list elements with an identifier containing the number
body: <p>I have gotten amazing help here today!</p>
  <p>I'm trying to do something else.  I have a numbered list of questions in a Google Doc, and I'd like to replace the numbers with something else.</p>
  <p>For example, I'd like to replace the numbers in a list such as:</p>
  <ol start="9">
  <li><p>The Earth is closest to the Sun in which month of the year?
  ~July
  ~June
  =January
  ~March
  ~September</p>
  </li>
  <li><p>In Australia (in the Southern Hemisphere), when are the days the shortest and the nights the longest?
  ~in late December
  ~in late March
  =in late June
  ~in late April
  ~days and nights are pretty much the same length throughout the year in Australia</p>
  </li>
  </ol>
  <p>With:</p>
  <p>::Q09:: The Earth is closest to the Sun in which month of the year?
  ~July
  ~June
  =January
  ~March
  ~September</p>
  <p>::Q11:: In Australia (in the Southern Hemisphere), when are the days the shortest and the nights the longest?
  ~in late December
  ~in late March
  =in late June
  ~in late April
  ~days and nights are pretty much the same length throughout the year in Australia</p>
  <p>I've tried using suggestions from previous posts but have come up only with things such as the following, which doesn't seem to work.</p>
  <p>Thank you for being here!!!</p>
  <pre><code>function questionName2(){
    var body = DocumentApp.getActiveDocument().getBody();
    var text = body.editAsText();
      var pattern = &quot;^[1-9]&quot;;
      var found = body.findText(pattern);
      var matchPosition = found.getStartOffset();
    
    while(found){
      text.insertText(matchPosition,'::Q0');
      found = body.findText(pattern, found);
    }
  }
  
  </code></pre>