Step by step guide: Improve 'any way' regex

This commit is contained in:
Alex Cabal 2020-10-25 18:28:50 -05:00
parent 6771b3edaa
commit 9422994747

View file

@ -293,7 +293,7 @@ proceed to seal up my confession, I bring the life of that unhappy Henry Jekyll
<code class="terminal"><span><b>se</b> interactive-sr <i>"/\v([Ee])very thing/\1verything/"</i> src/epub/text/<i class="glob">*</i></span> <span><b>git</b> commit -am <i>"[Editorial] every thing -&gt; everything"</i></span></code> <code class="terminal"><span><b>se</b> interactive-sr <i>"/\v([Ee])very thing/\1verything/"</i> src/epub/text/<i class="glob">*</i></span> <span><b>git</b> commit -am <i>"[Editorial] every thing -&gt; everything"</i></span></code>
<code class="terminal"><span><b>se</b> interactive-sr <i>"/\v(&lt;[Aa])ny thing/\1nything/"</i> src/epub/text/<i class="glob">*</i></span> <span><b>git</b> commit -am <i>"[Editorial] any thing -&gt; anything"</i></span></code> <code class="terminal"><span><b>se</b> interactive-sr <i>"/\v(&lt;[Aa])ny thing/\1nything/"</i> src/epub/text/<i class="glob">*</i></span> <span><b>git</b> commit -am <i>"[Editorial] any thing -&gt; anything"</i></span></code>
<code class="terminal"><span><b>se</b> interactive-sr <i>"/\v([Ff])or ever(&gt;)/\1orever\2/"</i> src/epub/text/<i class="glob">*</i></span> <span><b>git</b> commit -am <i>"[Editorial] for ever -&gt; forever"</i></span></code> <code class="terminal"><span><b>se</b> interactive-sr <i>"/\v([Ff])or ever(&gt;)/\1orever\2/"</i> src/epub/text/<i class="glob">*</i></span> <span><b>git</b> commit -am <i>"[Editorial] for ever -&gt; forever"</i></span></code>
<code class="terminal"><span><b>se</b> interactive-sr <i>"/\v(in\s+)@&lt;\!(&lt;[Aa])ny way/\2nyway/"</i> src/epub/text/<i class="glob">*</i></span> <span><b>git</b> commit -am <i>"[Editorial] any way -&gt; anyway"</i></span></code> <code class="terminal"><span><b>se</b> interactive-sr <i>"/\v(in\s+)@&lt;\!(&lt;[Aa])ny way(\s+(of|to))@\!/\2nyway/"</i> src/epub/text/<i class="glob">*</i></span> <span><b>git</b> commit -am <i>"[Editorial] any way -&gt; anyway"</i></span></code>
<code class="terminal"><span><b>se</b> interactive-sr <i>"/\v([Yy])our self/\1ourself/"</i> src/epub/text/<i class="glob">*</i></span> <span><b>git</b> commit -am <i>"[Editorial] your self -&gt; yourself"</i></span></code> <code class="terminal"><span><b>se</b> interactive-sr <i>"/\v([Yy])our self/\1ourself/"</i> src/epub/text/<i class="glob">*</i></span> <span><b>git</b> commit -am <i>"[Editorial] your self -&gt; yourself"</i></span></code>
<code class="terminal"><span><b>se</b> interactive-sr <i>"/\v([Mm])ean time/\1eantime/"</i> src/epub/text/<i class="glob">*</i></span> <span><b>git</b> commit -am <i>"[Editorial] mean time -&gt; meantime"</i></span></code> <code class="terminal"><span><b>se</b> interactive-sr <i>"/\v([Mm])ean time/\1eantime/"</i> src/epub/text/<i class="glob">*</i></span> <span><b>git</b> commit -am <i>"[Editorial] mean time -&gt; meantime"</i></span></code>
<code class="terminal"><span><b>se</b> interactive-sr <i>"/\v([Aa])ny how/\1nyhow/"</i> src/epub/text/<i class="glob">*</i></span> <span><b>git</b> commit -am <i>"[Editorial] any how -&gt; anyhow"</i></span></code> <code class="terminal"><span><b>se</b> interactive-sr <i>"/\v([Aa])ny how/\1nyhow/"</i> src/epub/text/<i class="glob">*</i></span> <span><b>git</b> commit -am <i>"[Editorial] any how -&gt; anyhow"</i></span></code>