Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Find:</p> <pre><code>(.+?),\s? </code></pre> <p>Replace:</p> <pre><code>\1\r </code></pre> <p>I'm not sure what you meant by “wrap the open/close around the category” but if you mean that you want to wrap it in some sort of tag or link just add it to the replace.</p> <p>Replace:</p> <pre><code>&lt;a href="http://example.com/"&gt;\1&lt;/a&gt;\r </code></pre> <p>Would give you</p> <pre><code>&lt;a href="http://example.com/"&gt;Social web&lt;/a&gt; &lt;a href="http://example.com/"&gt;Email&lt;/a&gt; &lt;a href="http://example.com/"&gt;Twitter&lt;/a&gt; </code></pre> <p>Or get fancier with Replace:</p> <pre><code>&lt;a href="http://example.com/tag/\1/"&gt;\1&lt;/a&gt;\r </code></pre> <p>Would give you</p> <pre><code>&lt;a href="http://example.com/tag/Social web/"&gt;Social web&lt;/a&gt; &lt;a href="http://example.com/tag/Email/"&gt;Email&lt;/a&gt; &lt;a href="http://example.com/tag/Twitter/"&gt;Twitter&lt;/a&gt; </code></pre> <p>In that last example you may have a problem with the “Social web” URL having a space in it. I wouldn't recommend that, but I wanted to show you that you could use the \1 backreference more than once.</p> <p>The Grep reference in the BBEdit Manual is fantastic. Go to Help->User Manual and then Chapter 8. Learning how to use RegEx well will change your life.</p> <p><strong>UPDATE</strong> Weird, when I first looked at this it didn't show me your full example. Based upon what I see now you should</p> <p>Find:</p> <pre><code>(.+?),\s? </code></pre> <p>Replace:</p> <pre><code>&lt;dc:subject&gt;\1&lt;/dc:subject&gt;\r </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload