title: Build a regular expression to find id in an href
body: <p>Could someone show me a regular expression that would look through this document and select the href value of every href that has <code>RELATION_ID</code> on the end of it?
  Then if it does, I have to get the Id that is before the question mark (example <code>href="dctm://ISDOFSDdev/</code>37004e1f800021f3<code>?DMS_OBJECT_SPEC=RELATION_ID</code>")</p>
  
  <p>Thanks!</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;?dctm xml_app="elearningContent"?&gt;
  &lt;!DOCTYPE OnlineContent PUBLIC "-//ISDOFSD//DTD Online Content//EN" "file:C:/dmExport/New%20Folder%20(2)/ISDOFSDdev/elearningContent/OnlineContent.dtd"&gt;
  &lt;OnlineContent outputclass="Graphic Down" id="OnlineContent_955627C91D8743B98DCB8BD9BE379DE8"&gt;
      &lt;title&gt;Text and Popup&lt;/title&gt;
      &lt;OnlineContentBody&gt;
          &lt;lcInstruction id="lcInstruction_770F26218C064A84BFA1813562173970"&gt;
              &lt;p&gt;This is an example of a plain text screen with an attached popup.&lt;/p&gt;
              &lt;p&gt;
                  Popups are used to display additional content in a popup window. A &lt;xref scope="local" type="topic" format="dita" href="dctm://ISDOFSDdev/37004e1f800021f3?DMS_OBJECT_SPEC=RELATION_ID"&gt;link is provided&lt;/xref&gt; in the main text of the screen, which may clicked on to open a popup. A screen may contain &lt;xref scope="local" type="topic" format="dita" href="dctm://ISDOFSDdev/37004e1f800021f4?DMS_OBJECT_SPEC=RELATION_ID"&gt;more than one popup&lt;/xref&gt;.
              &lt;/p&gt;
          &lt;/lcInstruction&gt;
      &lt;/OnlineContentBody&gt;
      &lt;OnlinePopup id="OnlinePopup_AFE53E2CACBF4D8196E6360D4DDB6B70"&gt;
          &lt;title&gt;A Popup&lt;/title&gt;
          &lt;OnlinePopupBody&gt;
              &lt;p&gt;This is an example of popup content.&lt;/p&gt;
              &lt;p&gt;A popup may contain one or more paragraphs of text. They may also contain lists, like this:&lt;/p&gt;
              &lt;ul id="ul_7812991BBBDD4995B7499A9557C4EA9C"&gt;
                  &lt;li id="li_E83BDB28EC494B98BFF3DD5924AF855E"&gt;An item in a list&lt;/li&gt;
                  &lt;li id="li_270F2A3A85BA4E6EBF98CB4023344475"&gt;Another item in a list&lt;/li&gt;
              &lt;/ul&gt;
              &lt;p&gt;A numbered list is demonstrated in the second popup.&lt;/p&gt;
          &lt;/OnlinePopupBody&gt;
      &lt;/OnlinePopup&gt;
      &lt;OnlinePopup id="OnlinePopup_5AE081BFB97043CE99F39A9E4A063332"&gt;
          &lt;title&gt;Another Popup&lt;/title&gt;
          &lt;OnlinePopupBody&gt;
              &lt;p&gt;This is the second popup on this screen, containing a numbered list.&lt;/p&gt;
              &lt;ol id="ol_EF18C080E7CC40B7998DEB75772367A6"&gt;
                  &lt;li id="li_91B42F1B886B4CF887C001577C14B3F0"&gt;An item in a list&lt;/li&gt;
                  &lt;li id="li_95C4F32E093843FAB985A3F6981A7D07"&gt;Another item in a list&lt;/li&gt;
              &lt;/ol&gt;
          &lt;/OnlinePopupBody&gt;
      &lt;/OnlinePopup&gt;
  &lt;/OnlineContent&gt;
  </code></pre>