Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If we "unwrap" the regular expressions, they are respectively:</p> <ul> <li>replace <code>/\*\*\s*(.*?)\s*\*/</code> with <code>** $1 **</code>;</li> <li>replace <code>/\*.*?\*\*/</code> with <code>.</code>;</li> <li>replace <code>/\*[^*].*?[^*]\*/</code> with nothing (the empty string).</li> </ul> <p>First regex:</p> <pre><code>/\*\* # Look for '/' followed by two occurrences of '*', \s* # followed by zero or more space characters, (.*?) # followed by zero or more of any character, lazily (with capture), \s* # followed by zero or more space characters, \*/ # followed by a '*' and a '/' </code></pre> <p>As the quantifier in the capture is lazy (<code>*?</code>), it means the regex engine will try and match the minimum possible amount of text before the next component of the regex (<code>\s*</code>) is satisfied (unlike a normal, "greedy" quantifier like <code>*</code> which will try and match the maximum possible amount before giving text back to satisfy the next component, if needed). The capture is available as <code>$1</code> in the replacement text.</p> <p>Second regex:</p> <pre><code>/\* # Look for a '/' then a '*', .*? # followed by zero or more of any character, lazily, \*\*/ # followed by two '*' and a '/' </code></pre> <p>And replace all of this with a single dot (<code>.</code>).</p> <p>Third regex:</p> <pre><code>/\* # Look for a '/' then a '*', [^*] # followed by one character which is not a '*', .*? # followed by zero or more of any character, lazily, [^*] # followed by one character which is not a '*', \*/ # followed by a '*' then a '/'. </code></pre> <p>And replace all of this with the empty string.</p>
    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. 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