Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You need a negative lookbehind here:</p> <pre><code>(?&lt;!\\)\*[^*]+(?&lt;!\\)\* </code></pre> <p>In a Java string, this gives (backslash galore):</p> <pre><code>"(?&lt;!\\\\)\\*[^*]+(?&lt;!\\\\)\\*" </code></pre> <p>Note: the star (<code>*</code>) has no special meaning within a character class, therefore there is no need to escape it</p> <p>Note 2: <code>(?&lt;!...)</code> is a negative lookbehind; it is an anchor, which means it finds a <em>position</em> but consumes no text. Literally, it can be translated as: "find a position where there is no <em>preceding text</em> matching regex <code>...</code>". Other anchors are:</p> <ul> <li><code>^</code>: find a position where there is no available input before (ie, can only match at the beginning of the input);</li> <li><code>$</code>: find a position where there is no available input after (ie, can only match at the end of the input);</li> <li><code>(?=...)</code>: find a position where the following text matches regex <code>...</code> (this is called a positive lookahead);</li> <li><code>(?!...)</code>: find a position where the following text <em>does not</em> match regex <code>...</code> (this is called a negative lookahead);</li> <li><code>(?&lt;=...)</code>: find a position where the preceding text matches regex <code>...</code> (this is a positive lookbehind);</li> <li><code>\&lt;</code>: find a position where the preceding input is either nothing or a character which is not a word character, and the following character is a word character (implementation dependent);</li> <li><code>\&gt;</code>: find a position where the following input is either nothing or a character which is not a word character, and the preceding character is a word character (implementation dependent);</li> <li><code>\b</code>: either <code>\&lt;</code> or <code>\&gt;</code>.</li> </ul> <p>Note 3: Javascript regexes do not support lookbehinds; neither do they support <code>\&lt;</code> or <code>\&gt;</code>. More information <a href="http://regular-expressions.info" rel="nofollow">here</a>.</p> <p>Note 4: with some regex engines, it is possible to alter the meaning of <code>^</code> and <code>$</code> to match positions at the beginning and end of <em>each line</em> instead; in Java, that is <code>Pattern.MULTILINE</code>; in Perl-like regex engines, that is <code>/m</code>.</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.
    3. 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