<div dir="ltr"><span style="background-color:rgb(255,255,255)"><font face="tahoma, sans-serif" style="" color="#000000">Greetings Saints,</font></span><div><font color="#000000" face="tahoma, sans-serif"><span style="background-color:rgb(255,255,255)"><br></span></font><div><font color="#000000" style="background-color:rgb(255,255,255)" face="tahoma, sans-serif">I&#39;m processing an OSIS Commentary in InDesign using GREP:<br></font></div><div><font color="#000000" style="background-color:rgb(255,255,255)" face="tahoma, sans-serif"><br></font></div><div><font color="#000000" style="background-color:rgb(255,255,255)" face="monospace"><b style="">Find: </b>((\d+ )?(\w+?.? \d+[:]\d+)(.\d+)?([, \d]+(.\d+)?)*)</font></div><div><font color="#000000" style="background-color:rgb(255,255,255)" face="monospace"><b style="">Replace:</b> &lt;reference osisRef=&quot;$1&quot;&gt;$1&lt;/reference&gt;</font></div><div><font color="#000000" style="background-color:rgb(255,255,255)" face="tahoma, sans-serif"><br></font></div><div><font color="#000000" style="background-color:rgb(255,255,255)" face="tahoma, sans-serif">It partially accomplishes the task, but does not automatically convert the book names to the standard OSIS abbreviations. I also need help in figuring out how to add looking for Arabic and Roman numerals (1-2 instances of the letter &quot;I&quot;; or simply &quot;1&quot; or &quot;2&quot; ) to cover instances of something like I Corinthians or II Corinthians; 1 Corinthians or 2 Corinthians.</font></div><div><font color="#000000" style="background-color:rgb(255,255,255)" face="tahoma, sans-serif"><br></font></div><div><font color="#000000" style="background-color:rgb(255,255,255)" face="tahoma, sans-serif">Could anyone be so kind enough as to provide a <b>grep</b> or <b>sed</b> script to <span class="gmail-bold gmail-highlight gmail-search-highlight" style="font-weight:bold;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">auto</span> convert any kind of Bible <span class="gmail-bold gmail-highlight gmail-search-highlight" style="font-weight:bold;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">reference</span> into this format:<br></font></div><div><font face="tahoma, sans-serif" style="background-color:rgb(255,255,255)" color="#000000"><br style="">&lt;<span class="gmail-bold gmail-highlight gmail-search-highlight" style="font-weight:bold;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">reference</span> osisRef=&quot;Gen.1.1&quot;&gt;Genesis 1:1&lt;/<span class="gmail-bold gmail-highlight gmail-search-highlight" style="font-weight:bold;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">reference</span>&gt;<br></font></div><div><font face="tahoma, sans-serif" style="background-color:rgb(255,255,255)" color="#000000">&lt;<span class="gmail-bold gmail-highlight gmail-search-highlight" style="font-weight:bold;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">reference</span> osisRef=&quot;2Chr.1.1&quot;&gt;2 Chronicles 1:1&lt;/<span class="gmail-bold gmail-highlight gmail-search-highlight" style="font-weight:bold;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">reference</span>&gt;</font></div><div><font face="tahoma, sans-serif" style="background-color:rgb(255,255,255)" color="#000000">&lt;<span class="gmail-bold gmail-highlight gmail-search-highlight" style="font-weight:bold;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">reference</span> osisRef=&quot;2Chr.1.1&quot;&gt;II Chronicles 1:1&lt;/<span class="gmail-bold gmail-highlight gmail-search-highlight" style="font-weight:bold;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">reference</span>&gt;<br style=""><br></font></div><div><font color="#000000" style="background-color:rgb(255,255,255)" face="tahoma, sans-serif">In Christ Alone,<br></font></div><div><font face="tahoma, sans-serif" style="background-color:rgb(255,255,255)" color="#000000"><br></font></div><div><font face="tahoma, sans-serif" style="background-color:rgb(255,255,255)" color="#000000">Maxwell.</font></div></div></div>