読者です 読者をやめる 読者になる 読者になる

Emacsで正規表現を使った置換

Emacs

Physical Review Dに掲載されたある論文をBibDeskに登録しようと思ったところ、BibTex形式での出力結果のauthor listが省略されていたため、自分の名前が入っていませんでした。手入力で総勢100名のauthor listを書き換えるのも大変なので、Emacs正規表現を使って整形することにします。

ここのHTMLから、author listに該当する部分を持ってきます。

<a href="http://publish.aps.org/search/field/author/Abdo_A_A">A. A. Abdo</a><sup class="aps-affref">1,2</sup>, <a href="http://publish.aps.org/search/field/author/Ackermann_M">M. Ackermann</a><sup class="aps-affref">3,*</sup>, <a href="http://publish.aps.org/search/field/author/Ajello_M">M. Ajello</a><sup class="aps-affref">3</sup>, <a href="http://publish.aps.org/search/field/author/Atwood_W_B">W. B. Atwood</a><sup class="aps-affref">4</sup>, <a href="http://publish.aps.org/search/field/author/Baldini_L">L. Baldini</a><sup class="aps-affref">5</sup>, <a href="http://publish.aps.org/search/field/author/Ballet_J">J. Ballet</a><sup class="aps-affref">6</sup>, <a href="http://publish.aps.org/search/field/author/Barbiellini_G">G. Barbiellini</a><sup class="aps-affref">7,8</sup>, <a href="http://publish.aps.org/search/field/author/Bastieri_D">D. Bastieri</a><sup class="aps-affref">9,10</sup>, <a href="http://publish.aps.org/search/field/author/Baughman_B_M">B. M. Baughman</a><sup class="aps-affref">11</sup>, <a href="http://publish.aps.org/search/field/author/Bechtol_K">K. Bechtol</a><sup class="aps-affref">3</sup>, <a href="http://publish.aps.org/search/field/author/Bellazzini_R">R. Bellazzini</a><sup class="aps-affref">5</sup>, <a href="http://publish.aps.org/search/field/author/Berenji_B">B. Berenji</a><sup class="aps-affref">3</sup>, <a href="http://publish.aps.org/search/field/author/Bloom_E_D">E. D. Bloom</a><sup class="aps-affref">3</sup>, <a href="http://publish.aps.org/search/field/author/Bonamente_E">E. Bonamente</a><sup class="aps-affref">12,13</sup>, <a href="http://publish.aps.org/search/field/author/Borgland_A_W">A. W. Borgland</a><sup class="aps-affref">3</sup>, <a href="http://publish.aps.org/search/field/author/Bouvier_A">A. Bouvier</a><sup class="aps-affref">3</sup>, <a href="http://publish.aps.org/search/field/author/Bregeon_J">J. Bregeon</a><sup class="aps-affref">5</sup>, <a href="http://publish.aps.org/search/field/author/Brez_A">A. Brez</a><sup class="aps-affref">5</sup>, <a href="http://publish.aps.org/search/field/author/Brigida_M">M. Brigida</a><sup class="aps-affref">14,15</sup>, <a href="http://publish.aps.org/search/field/author/Bruel_P">P. Bruel</a><sup class="aps-affref">16</sup>, <a href="http://publish.aps.org/search/field/author/Buehler_R">R. Buehler</a><sup class="aps-affref">3</sup>, <a href="http://publish.aps.org/search/field/author/Burnett_T_H">T. H. Burnett</a><sup class="aps-affref">17</sup>, <a href="http://publish.aps.org/search/field/author/Buson_S">S. Buson</a><sup class="aps-affref">10</sup>, <a href="http://publish.aps.org/search/field/author/Caliandro_G_A">G. A. Caliandro</a><sup class="aps-affref">18</sup>, <a href="http://publish.aps.org/search/field/author/Cameron_R_A">R. A. Cameron</a><sup class="aps-affref">3</sup>, <a href="http://publish.aps.org/search/field/author/Caraveo_P_A">P. A. Caraveo</a><sup class="aps-affref">19</sup>, <a href="http://publish.aps.org/search/field/author/Casandjian_J_M">J. M. Casandjian</a><sup class="aps-affref">6</sup>, <a href="http://publish.aps.org/search/field/author/Cecchi_C">C. Cecchi</a><sup class="aps-affref">12,13</sup>, <a href="http://publish.aps.org/search/field/author/Celik_O">&#214;. &#199;elik</a><sup class="aps-affref">20,21,22</sup>, <a href="http://publish.aps.org/search/field/author/Charles_E">E. Charles</a><sup class="aps-affref">3</sup>, <a href="http://publish.aps.org/search/field/author/Chekhtman_A">A. Chekhtman</a><sup class="aps-affref">1,23</sup>, <a href="http://publish.aps.org/search/field/author/Chiang_J">J. Chiang</a><sup class="aps-affref">3</sup>, <a href="http://publish.aps.org/search/field/author/Ciprini_S">S. Ciprini</a><sup class="aps-affref">13</sup>, <a href="http://publish.aps.org/search/field/author/Claus_R">R. Claus</a><sup class="aps-affref">3</sup>, <a href="http://publish.aps.org/search/field/author/Cohen_Tanugi_J">J. Cohen-Tanugi</a><sup class="aps-affref">24</sup>, <a href="http://publish.aps.org/search/field/author/Conrad_J">J. Conrad</a><sup class="aps-affref">25,26</sup>, <a href="http://publish.aps.org/search/field/author/de_Palma_F">F. de Palma</a><sup class="aps-affref">14,15</sup>, <a href="http://publish.aps.org/search/field/author/Digel_S_W">S. W. Digel</a><sup class="aps-affref">3</sup>, <a href="http://publish.aps.org/search/field/author/do_Couto_e_Silva_E">E. do Couto e Silva</a><sup class="aps-affref">3</sup>, <a href="http://publish.aps.org/search/field/author/Drell_P_S">P. S. Drell</a><sup class="aps-affref">3</sup>, <a href="http://publish.aps.org/search/field/author/Dubois_R">R. Dubois</a><sup class="aps-affref">3</sup>, <a href="http://publish.aps.org/search/field/author/Dumora_D">D. Dumora</a><sup class="aps-affref">27,28</sup>, <a href="http://publish.aps.org/search/field/author/Farnier_C">C. Farnier</a><sup class="aps-affref">24</sup>, <a href="http://publish.aps.org/search/field/author/Favuzzi_C">C. Favuzzi</a><sup class="aps-affref">14,15</sup>, <a href="http://publish.aps.org/search/field/author/Fegan_S_J">S. J. Fegan</a><sup class="aps-affref">16</sup>, <a href="http://publish.aps.org/search/field/author/Focke_W_B">W. B. Focke</a><sup class="aps-affref">3</sup>, <a href="http://publish.aps.org/search/field/author/Fortin_P">P. Fortin</a><sup class="aps-affref">16</sup>, <a href="http://publish.aps.org/search/field/author/Frailis_M">M. Frailis</a><sup class="aps-affref">29</sup>, <a href="http://publish.aps.org/search/field/author/Fukazawa_Y">Y. Fukazawa</a><sup class="aps-affref">30</sup>, <a href="http://publish.aps.org/search/field/author/Funk_S">S. Funk</a><sup class="aps-affref">3,†</sup>, <a href="http://publish.aps.org/search/field/author/Fusco_P">P. Fusco</a><sup class="aps-affref">14,15</sup>, <a href="http://publish.aps.org/search/field/author/Gargano_F">F. Gargano</a><sup class="aps-affref">15</sup>, <a href="http://publish.aps.org/search/field/author/Gehrels_N">N. Gehrels</a><sup class="aps-affref">20,31,32</sup>, <a href="http://publish.aps.org/search/field/author/Germani_S">S. Germani</a><sup class="aps-affref">12,13</sup>, <a href="http://publish.aps.org/search/field/author/Giebels_B">B. Giebels</a><sup class="aps-affref">16</sup>, <a href="http://publish.aps.org/search/field/author/Giglietto_N">N. Giglietto</a><sup class="aps-affref">14,15</sup>, <a href="http://publish.aps.org/search/field/author/Giordano_F">F. Giordano</a><sup class="aps-affref">14,15</sup>, <a href="http://publish.aps.org/search/field/author/Glanzman_T">T. Glanzman</a><sup class="aps-affref">3</sup>, <a href="http://publish.aps.org/search/field/author/Godfrey_G">G. Godfrey</a><sup class="aps-affref">3</sup>, <a href="http://publish.aps.org/search/field/author/Grenier_I_A">I. A. Grenier</a><sup class="aps-affref">6</sup>, <a href="http://publish.aps.org/search/field/author/Grondin_M_H">M.-H. Grondin</a><sup class="aps-affref">27,28</sup>, <a href="http://publish.aps.org/search/field/author/Grove_J_E">J. E. Grove</a><sup class="aps-affref">1</sup>, <a href="http://publish.aps.org/search/field/author/Guillemot_L">L. Guillemot</a><sup class="aps-affref">33</sup>, <a href="http://publish.aps.org/search/field/author/Guiriec_S">S. Guiriec</a><sup class="aps-affref">34</sup>, <a href="http://publish.aps.org/search/field/author/Hays_E">E. Hays</a><sup class="aps-affref">20</sup>, <a href="http://publish.aps.org/search/field/author/Horan_D">D. Horan</a><sup class="aps-affref">16</sup>, <a href="http://publish.aps.org/search/field/author/Hughes_R_E">R. E. Hughes</a><sup class="aps-affref">11</sup>, <a href="http://publish.aps.org/search/field/author/Johannesson_G">G. J&#243;hannesson</a><sup class="aps-affref">3</sup>, <a href="http://publish.aps.org/search/field/author/Johnson_A_S">A. S. Johnson</a><sup class="aps-affref">3</sup>, <a href="http://publish.aps.org/search/field/author/Johnson_T_J">T. J. Johnson</a><sup class="aps-affref">20,32</sup>, <a href="http://publish.aps.org/search/field/author/Johnson_W_N">W. N. Johnson</a><sup class="aps-affref">1</sup>, <a href="http://publish.aps.org/search/field/author/Kamae_T">T. Kamae</a><sup class="aps-affref">3</sup>, <a href="http://publish.aps.org/search/field/author/Katagiri_H">H. Katagiri</a><sup class="aps-affref">30</sup>, <a href="http://publish.aps.org/search/field/author/Kataoka_J">J. Kataoka</a><sup class="aps-affref">35</sup>, <a href="http://publish.aps.org/search/field/author/Kawai_N">N. Kawai</a><sup class="aps-affref">36,37</sup>, <a href="http://publish.aps.org/search/field/author/Kerr_M">M. Kerr</a><sup class="aps-affref">17</sup>, <a href="http://publish.aps.org/search/field/author/Knodlseder_J">J. Kn&#246;dlseder</a><sup class="aps-affref">38</sup>, <a href="http://publish.aps.org/search/field/author/Kuss_M">M. Kuss</a><sup class="aps-affref">5</sup>, <a href="http://publish.aps.org/search/field/author/Lande_J">J. Lande</a><sup class="aps-affref">3</sup>, <a href="http://publish.aps.org/search/field/author/Latronico_L">L. Latronico</a><sup class="aps-affref">5</sup>, <a href="http://publish.aps.org/search/field/author/Lemoine_Goumard_M">M. Lemoine-Goumard</a><sup class="aps-affref">27,28</sup>, <a href="http://publish.aps.org/search/field/author/Longo_F">F. Longo</a><sup class="aps-affref">7,8</sup>, <a href="http://publish.aps.org/search/field/author/Loparco_F">F. Loparco</a><sup class="aps-affref">14,15</sup>, <a href="http://publish.aps.org/search/field/author/Lott_B">B. Lott</a><sup class="aps-affref">27,28</sup>, <a href="http://publish.aps.org/search/field/author/Lovellette_M_N">M. N. Lovellette</a><sup class="aps-affref">1</sup>, <a href="http://publish.aps.org/search/field/author/Lubrano_P">P. Lubrano</a><sup class="aps-affref">12,13</sup>, <a href="http://publish.aps.org/search/field/author/Makeev_A">A. Makeev</a><sup class="aps-affref">1,23</sup>, <a href="http://publish.aps.org/search/field/author/Mazziotta_M_N">M. N. Mazziotta</a><sup class="aps-affref">15</sup>, <a href="http://publish.aps.org/search/field/author/McEnery_J_E">J. E. McEnery</a><sup class="aps-affref">20,33</sup>, <a href="http://publish.aps.org/search/field/author/Meurer_C">C. Meurer</a><sup class="aps-affref">25,26</sup>, <a href="http://publish.aps.org/search/field/author/Michelson_P_F">P. F. Michelson</a><sup class="aps-affref">3</sup>, <a href="http://publish.aps.org/search/field/author/Mitthumsiri_W">W. Mitthumsiri</a><sup class="aps-affref">3,‡</sup>, <a href="http://publish.aps.org/search/field/author/Mizuno_T">T. Mizuno</a><sup class="aps-affref">30</sup>, <a href="http://publish.aps.org/search/field/author/Monte_C">C. Monte</a><sup class="aps-affref">14,15</sup>, <a href="http://publish.aps.org/search/field/author/Monzani_M_E">M. E. Monzani</a><sup class="aps-affref">3</sup>, <a href="http://publish.aps.org/search/field/author/Morselli_A">A. Morselli</a><sup class="aps-affref">39</sup>, <a href="http://publish.aps.org/search/field/author/Moskalenko_I_V">I. V. Moskalenko</a><sup class="aps-affref">3</sup>, <a href="http://publish.aps.org/search/field/author/Murgia_S">S. Murgia</a><sup class="aps-affref">3</sup>, <a href="http://publish.aps.org/search/field/author/Nolan_P_L">P. L. Nolan</a><sup class="aps-affref">3</sup>, <a href="http://publish.aps.org/search/field/author/Norris_J_P">J. P. Norris</a><sup class="aps-affref">40</sup>, <a href="http://publish.aps.org/search/field/author/Nuss_E">E. Nuss</a><sup class="aps-affref">24</sup>, <a href="http://publish.aps.org/search/field/author/Ohsugi_T">T. Ohsugi</a><sup class="aps-affref">31</sup>, <a href="http://publish.aps.org/search/field/author/Okumura_A">A. Okumura</a><sup class="aps-affref">41</sup>, <a href="http://publish.aps.org/search/field/author/Omodei_N">N. Omodei</a><sup class="aps-affref">5</sup>, <a href="http://publish.aps.org/search/field/author/Orlando_E">E. Orlando</a><sup class="aps-affref">42</sup>, <a href="http://publish.aps.org/search/field/author/Ormes_J_F">J. F. Ormes</a><sup class="aps-affref">40</sup>, <a href="http://publish.aps.org/search/field/author/Paneque_D">D. Paneque</a><sup class="aps-affref">3</sup>, <a href="http://publish.aps.org/search/field/author/Panetta_J_H">J. H. Panetta</a><sup class="aps-affref">3</sup>, <a href="http://publish.aps.org/search/field/author/Parent_D">D. Parent</a><sup class="aps-affref">27,28</sup>, <a href="http://publish.aps.org/search/field/author/Pelassa_V">V. Pelassa</a><sup class="aps-affref">24</sup>, <a href="http://publish.aps.org/search/field/author/Pepe_M">M. Pepe</a><sup class="aps-affref">12,13</sup>, <a href="http://publish.aps.org/search/field/author/Pesce_Rollins_M">M. Pesce-Rollins</a><sup class="aps-affref">5</sup>, <a href="http://publish.aps.org/search/field/author/Piron_F">F. Piron</a><sup class="aps-affref">24</sup>, <a href="http://publish.aps.org/search/field/author/Porter_T_A">T. A. Porter</a><sup class="aps-affref">4</sup>, <a href="http://publish.aps.org/search/field/author/Raino_S">S. Rain&#242;</a><sup class="aps-affref">14,15</sup>, <a href="http://publish.aps.org/search/field/author/Rando_R">R. Rando</a><sup class="aps-affref">9,10</sup>, <a href="http://publish.aps.org/search/field/author/Razzano_M">M. Razzano</a><sup class="aps-affref">5</sup>, <a href="http://publish.aps.org/search/field/author/Reimer_A">A. Reimer</a><sup class="aps-affref">43,3</sup>, <a href="http://publish.aps.org/search/field/author/Reimer_O">O. Reimer</a><sup class="aps-affref">43,3</sup>, <a href="http://publish.aps.org/search/field/author/Reposeur_T">T. Reposeur</a><sup class="aps-affref">27,28</sup>, <a href="http://publish.aps.org/search/field/author/Rochester_L_S">L. S. Rochester</a><sup class="aps-affref">3</sup>, <a href="http://publish.aps.org/search/field/author/Rodriguez_A_Y">A. Y. Rodriguez</a><sup class="aps-affref">18</sup>, <a href="http://publish.aps.org/search/field/author/Roth_M">M. Roth</a><sup class="aps-affref">17</sup>, <a href="http://publish.aps.org/search/field/author/Sadrozinski_H_F_W">H. F.-W. Sadrozinski</a><sup class="aps-affref">4</sup>, <a href="http://publish.aps.org/search/field/author/Sander_A">A. Sander</a><sup class="aps-affref">11</sup>, <a href="http://publish.aps.org/search/field/author/Saz_Parkinson_P_M">P. M. Saz Parkinson</a><sup class="aps-affref">4</sup>, <a href="http://publish.aps.org/search/field/author/Sgro_C">C. Sgr&#242;</a><sup class="aps-affref">5</sup>, <a href="http://publish.aps.org/search/field/author/Share_G_H">G. H. Share</a><sup class="aps-affref">1,44</sup>, <a href="http://publish.aps.org/search/field/author/Siskind_E_J">E. J. Siskind</a><sup class="aps-affref">45</sup>, <a href="http://publish.aps.org/search/field/author/Smith_D_A">D. A. Smith</a><sup class="aps-affref">27,28</sup>, <a href="http://publish.aps.org/search/field/author/Smith_P_D">P. D. Smith</a><sup class="aps-affref">11</sup>, <a href="http://publish.aps.org/search/field/author/Spandre_G">G. Spandre</a><sup class="aps-affref">5</sup>, <a href="http://publish.aps.org/search/field/author/Spinelli_P">P. Spinelli</a><sup class="aps-affref">14,15</sup>, <a href="http://publish.aps.org/search/field/author/Strickman_M_S">M. S. Strickman</a><sup class="aps-affref">1</sup>, <a href="http://publish.aps.org/search/field/author/Suson_D_J">D. J. Suson</a><sup class="aps-affref">46</sup>, <a href="http://publish.aps.org/search/field/author/Takahashi_H">H. Takahashi</a><sup class="aps-affref">30</sup>, <a href="http://publish.aps.org/search/field/author/Tanaka_T">T. Tanaka</a><sup class="aps-affref">3</sup>, <a href="http://publish.aps.org/search/field/author/Thayer_J_B">J. B. Thayer</a><sup class="aps-affref">3</sup>, <a href="http://publish.aps.org/search/field/author/Thayer_J_G">J. G. Thayer</a><sup class="aps-affref">3</sup>, <a href="http://publish.aps.org/search/field/author/Thompson_D_J">D. J. Thompson</a><sup class="aps-affref">20</sup>, <a href="http://publish.aps.org/search/field/author/Tibaldo_L">L. Tibaldo</a><sup class="aps-affref">9,10,6</sup>, <a href="http://publish.aps.org/search/field/author/Torres_D_F">D. F. Torres</a><sup class="aps-affref">47,18</sup>, <a href="http://publish.aps.org/search/field/author/Tosti_G">G. Tosti</a><sup class="aps-affref">12,13</sup>, <a href="http://publish.aps.org/search/field/author/Tramacere_A">A. Tramacere</a><sup class="aps-affref">3,48</sup>, <a href="http://publish.aps.org/search/field/author/Uchiyama_Y">Y. Uchiyama</a><sup class="aps-affref">3</sup>, <a href="http://publish.aps.org/search/field/author/Usher_T_L">T. L. Usher</a><sup class="aps-affref">3</sup>, <a href="http://publish.aps.org/search/field/author/Vasileiou_V">V. Vasileiou</a><sup class="aps-affref">21,22</sup>, <a href="http://publish.aps.org/search/field/author/Vilchez_N">N. Vilchez</a><sup class="aps-affref">38</sup>, <a href="http://publish.aps.org/search/field/author/Vitale_V">V. Vitale</a><sup class="aps-affref">39,49</sup>, <a href="http://publish.aps.org/search/field/author/Waite_A_P">A. P. Waite</a><sup class="aps-affref">3</sup>, <a href="http://publish.aps.org/search/field/author/Wang_P">P. Wang</a><sup class="aps-affref">3</sup>, <a href="http://publish.aps.org/search/field/author/Winer_B_L">B. L. Winer</a><sup class="aps-affref">11</sup>, <a href="http://publish.aps.org/search/field/author/Wood_K_S">K. S. Wood</a><sup class="aps-affref">1</sup>, <a href="http://publish.aps.org/search/field/author/Ylinen_T">T. Ylinen</a><sup class="aps-affref">50,51,26</sup>, and <a href="http://publish.aps.org/search/field/author/Ziegler_M">M. Ziegler</a><sup class="aps-affref">4</sup>

次に、このHTMLの構造を理解するために、簡単に取り除ける余計な部分を削除します。上記HTMLをEmacsにコピペし、

M-x replace-regexpRET
a href="http://publish.aps.org/search/field/author/RET
RET

と入力します。ただし、ここでMはメタキー(escapeキーなど)、RETは改行を表しています。さらに

M-x replace-regexpRET
</a><sup class="aps-affref">[0-9,\\*]*</sup>, RET
 and RET

と入力し、さらに

M-x replace-regexpRET
<[a-zA-Z_]*">RET
RET

と入力します。

ここまでの整形結果は以下のようになります*1

A. A. Abdo and M. Ackermann and M. Ajello and W. B. Atwood and L. Baldini and J. Ballet and G. Barbiellini and D. Bastieri and B. M. Baughman and K. Bechtol and R. Bellazzini and B. Berenji and E. D. Bloom and E. Bonamente and A. W. Borgland and A. Bouvier and J. Bregeon and A. Brez and M. Brigida and P. Bruel and R. Buehler and T. H. Burnett and S. Buson and G. A. Caliandro and R. A. Cameron and P. A. Caraveo and J. M. Casandjian and C. Cecchi and &#214;. &#199;elik and E. Charles and A. Chekhtman and J. Chiang and S. Ciprini and R. Claus and J. Cohen-Tanugi and J. Conrad and F. de Palma and S. W. Digel and E. do Couto e Silva and P. S. Drell and R. Dubois and D. Dumora and C. Farnier and C. Favuzzi and S. J. Fegan and W. B. Focke and P. Fortin and M. Frailis and Y. Fukazawa and S. Funk</a><sup class="aps-affref">3,†</sup>, P. Fusco and F. Gargano and N. Gehrels and S. Germani and B. Giebels and N. Giglietto and F. Giordano and T. Glanzman and G. Godfrey and I. A. Grenier and M.-H. Grondin and J. E. Grove and L. Guillemot and S. Guiriec and E. Hays and D. Horan and R. E. Hughes and G. J&#243;hannesson and A. S. Johnson and T. J. Johnson and W. N. Johnson and T. Kamae and H. Katagiri and J. Kataoka and N. Kawai and M. Kerr and J. Kn&#246;dlseder and M. Kuss and J. Lande and L. Latronico and M. Lemoine-Goumard and F. Longo and F. Loparco and B. Lott and M. N. Lovellette and P. Lubrano and A. Makeev and M. N. Mazziotta and J. E. McEnery and C. Meurer and P. F. Michelson and W. Mitthumsiri</a><sup class="aps-affref">3,‡</sup>, T. Mizuno and C. Monte and M. E. Monzani and A. Morselli and I. V. Moskalenko and S. Murgia and P. L. Nolan and J. P. Norris and E. Nuss and T. Ohsugi and A. Okumura and N. Omodei and E. Orlando and J. F. Ormes and D. Paneque and J. H. Panetta and D. Parent and V. Pelassa and M. Pepe and M. Pesce-Rollins and F. Piron and T. A. Porter and S. Rain&#242; and R. Rando and M. Razzano and A. Reimer and O. Reimer and T. Reposeur and L. S. Rochester and A. Y. Rodriguez and M. Roth and H. F.-W. Sadrozinski and A. Sander and P. M. Saz Parkinson and C. Sgr&#242; and G. H. Share and E. J. Siskind and D. A. Smith and P. D. Smith and G. Spandre and P. Spinelli and M. S. Strickman and D. J. Suson and H. Takahashi and T. Tanaka and J. B. Thayer and J. G. Thayer and D. J. Thompson and L. Tibaldo and D. F. Torres and G. Tosti and A. Tramacere and Y. Uchiyama and T. L. Usher and V. Vasileiou and N. Vilchez and V. Vitale and A. P. Waite and P. Wang and B. L. Winer and K. S. Wood and T. Ylinen and and M. Ziegler</a><sup class="aps-affref">4</sup>

ここまでの作業で取りきれていない†のような特殊文字があるので、それを手で取り除くと

A. A. Abdo and M. Ackermann and M. Ajello and W. B. Atwood and L. Baldini and J. Ballet and G. Barbiellini and D. Bastieri and B. M. Baughman and K. Bechtol and R. Bellazzini and B. Berenji and E. D. Bloom and E. Bonamente and A. W. Borgland and A. Bouvier and J. Bregeon and A. Brez and M. Brigida and P. Bruel and R. Buehler and T. H. Burnett and S. Buson and G. A. Caliandro and R. A. Cameron and P. A. Caraveo and J. M. Casandjian and C. Cecchi and &#214;. &#199;elik and E. Charles and A. Chekhtman and J. Chiang and S. Ciprini and R. Claus and J. Cohen-Tanugi and J. Conrad and F. de Palma and S. W. Digel and E. do Couto e Silva and P. S. Drell and R. Dubois and D. Dumora and C. Farnier and C. Favuzzi and S. J. Fegan and W. B. Focke and P. Fortin and M. Frailis and Y. Fukazawa and S. Funk and P. Fusco and F. Gargano and N. Gehrels and S. Germani and B. Giebels and N. Giglietto and F. Giordano and T. Glanzman and G. Godfrey and I. A. Grenier and M.-H. Grondin and J. E. Grove and L. Guillemot and S. Guiriec and E. Hays and D. Horan and R. E. Hughes and G. J&#243;hannesson and A. S. Johnson and T. J. Johnson and W. N. Johnson and T. Kamae and H. Katagiri and J. Kataoka and N. Kawai and M. Kerr and J. Kn&#246;dlseder and M. Kuss and J. Lande and L. Latronico and M. Lemoine-Goumard and F. Longo and F. Loparco and B. Lott and M. N. Lovellette and P. Lubrano and A. Makeev and M. N. Mazziotta and J. E. McEnery and C. Meurer and P. F. Michelson and W. Mitthumsiri and T. Mizuno and C. Monte and M. E. Monzani and A. Morselli and I. V. Moskalenko and S. Murgia and P. L. Nolan and J. P. Norris and E. Nuss and T. Ohsugi and A. Okumura and N. Omodei and E. Orlando and J. F. Ormes and D. Paneque and J. H. Panetta and D. Parent and V. Pelassa and M. Pepe and M. Pesce-Rollins and F. Piron and T. A. Porter and S. Rain&#242; and R. Rando and M. Razzano and A. Reimer and O. Reimer and T. Reposeur and L. S. Rochester and A. Y. Rodriguez and M. Roth and H. F.-W. Sadrozinski and A. Sander and P. M. Saz Parkinson and C. Sgr&#242; and G. H. Share and E. J. Siskind and D. A. Smith and P. D. Smith and G. Spandre and P. Spinelli and M. S. Strickman and D. J. Suson and H. Takahashi and T. Tanaka and J. B. Thayer and J. G. Thayer and D. J. Thompson and L. Tibaldo and D. F. Torres and G. Tosti and A. Tramacere and Y. Uchiyama and T. L. Usher and V. Vasileiou and N. Vilchez and V. Vitale and A. P. Waite and P. Wang and B. L. Winer and K. S. Wood and T. Ylinen and M. Ziegler

となります。

さて、最後にこのauthor listの形式を、A. A. Abdo and ... のような書き方からAbdo, A. A. and ... のように変更します。

M-x replace-regexpRET
\(\([A-Z]\. \)+\)\([A-Z][a-zA-Z\-]+\) and RET
\3, \1and RET

と入力すると、次の結果を得ます。

Abdo, A. A. and Ackermann, M. and Ajello, M. and Atwood, W. B. and Baldini, L. and Ballet, J. and Barbiellini, G. and Bastieri, D. and Baughman, B. M. and Bechtol, K. and Bellazzini, R. and Berenji, B. and Bloom, E. D. and Bonamente, E. and Borgland, A. W. and Bouvier, A. and Bregeon, J. and Brez, A. and Brigida, M. and Bruel, P. and Buehler, R. and Burnett, T. H. and Buson, S. and Caliandro, G. A. and Cameron, R. A. and Caraveo, P. A. and Casandjian, J. M. and Cecchi, C. and &#214;. &#199;elik and Charles, E. and Chekhtman, A. and Chiang, J. and Ciprini, S. and Claus, R. and Cohen-Tanugi, J. and Conrad, J. and F. de Palma and Digel, S. W. and E. do Couto e Silva and Drell, P. S. and Dubois, R. and Dumora, D. and Farnier, C. and Favuzzi, C. and Fegan, S. J. and Focke, W. B. and Fortin, P. and Frailis, M. and Fukazawa, Y. and Funk, S. and Fusco, P. and Gargano, F. and Gehrels, N. and Germani, S. and Giebels, B. and Giglietto, N. and Giordano, F. and Glanzman, T. and Godfrey, G. and Grenier, I. A. and M.-Grondin, H. and Grove, J. E. and Guillemot, L. and Guiriec, S. and Hays, E. and Horan, D. and Hughes, R. E. and G. J&#243;hannesson and Johnson, A. S. and Johnson, T. J. and Johnson, W. N. and Kamae, T. and Katagiri, H. and Kataoka, J. and Kawai, N. and Kerr, M. and J. Kn&#246;dlseder and Kuss, M. and Lande, J. and Latronico, L. and Lemoine-Goumard, M. and Longo, F. and Loparco, F. and Lott, B. and Lovellette, M. N. and Lubrano, P. and Makeev, A. and Mazziotta, M. N. and McEnery, J. E. and Meurer, C. and Michelson, P. F. and Mitthumsiri, W. and Mizuno, T. and Monte, C. and Monzani, M. E. and Morselli, A. and Moskalenko, I. V. and Murgia, S. and Nolan, P. L. and Norris, J. P. and Nuss, E. and Ohsugi, T. and Okumura, A. and Omodei, N. and Orlando, E. and Ormes, J. F. and Paneque, D. and Panetta, J. H. and Parent, D. and Pelassa, V. and Pepe, M. and Pesce-Rollins, M. and Piron, F. and Porter, T. A. and S. Rain&#242; and Rando, R. and Razzano, M. and Reimer, A. and Reimer, O. and Reposeur, T. and Rochester, L. S. and Rodriguez, A. Y. and Roth, M. and H. F.-Sadrozinski, W. and Sander, A. and P. M. Saz Parkinson and C. Sgr&#242; and Share, G. H. and Siskind, E. J. and Smith, D. A. and Smith, P. D. and Spandre, G. and Spinelli, P. and Strickman, M. S. and Suson, D. J. and Takahashi, H. and Tanaka, T. and Thayer, J. B. and Thayer, J. G. and Thompson, D. J. and Tibaldo, L. and Torres, D. F. and Tosti, G. and Tramacere, A. and Uchiyama, Y. and Usher, T. L. and Vasileiou, V. and Vilchez, N. and Vitale, V. and Waite, A. P. and Wang, P. and Winer, B. L. and Wood, K. S. and Ylinen, T. and M. Ziegler

ウムラウトなどが含まれる文字や、大文字から始まらない名字のところだけ手で修正してやれば、完成です。

*1:はてな文字コードEUCのため、一部正しく表示されていません