Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Try following decryption sequence</p> <pre><code>%s/\v(...)(...)/\2\1/g %s/\v(.)(.)(.)(.)/\2\4\1\3/g %s/\v(.)\1{2}(.)\1/\2\1\1\1\1/g %s/\v(.)\1{3}/\1\1/g </code></pre> <p><strong>Notes :</strong></p> <ol> <li><code>1,$</code> is well written as <code>%</code></li> <li>Use very-magic specifier <code>\v</code> to avoid abundant escaping using <code>\</code></li> </ol> <hr> <blockquote> <p>What does \1 or \2\2\2 mean before the forward slash?</p> </blockquote> <p>Since <code>\1,\2,..</code> captures what's have been matched within <code>()</code>. Hence when they are used in matching pattern itself, they are meant to match repeating characters.</p> <ul> <li><p><code>(.)</code> will match any character but <code>(.)\1</code> will match only a charater followed by itself, or in other terms a character repeated 2 times. E.g. in string <code>abbxyz</code>, it will match <code>bb</code></p></li> <li><p><code>(.)(.)\2\2\2</code> will match only a character followed by another character repeating 4 times. It's better written as <code>(.)(.)\2{3}</code>. E.g. in string <code>baabbbbaa</code>, it will match <code>abbbb</code></p></li> </ul> <hr> <blockquote> <p>And what does &amp; or &amp;&amp; mean?</p> </blockquote> <p><code>&amp;</code> contains a string with entire match. So <code>&amp;&amp;</code> is obviously 2 times repetition of matched string.</p> <p>E.g. input string <code>abbxyz</code> and matching pattern is <code>(.)\1</code> then it matches <code>bb</code> which is stored in <code>&amp;</code>. Hence value of <code>&amp;&amp;</code> will be <code>bbbb</code></p> <hr> <p><strong>P.S.</strong> I would strongly recommended you to go through <a href="http://www.regular-expressions.info/" rel="nofollow"><strong><code>The Premier website about Regular Expressions</code></strong></a> before jumping into such kind of problems.</p>
    singulars
    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. VO
      singulars
      1. This table or related slice is empty.
    2. 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