Note that there are some explanatory texts on larger screens.

plurals
  1. PORemove lines containing more than X values, using regex
    primarykey
    data
    text
    <p>I am building an Mysql insert with regex.</p> <p>This is what the insert looks like so far:</p> <pre><code>(#text1#,#text2#,#text3#,#text4#,#text5#,#text6#, #text7#, #text8#, #text9#), (#text1#,#text2#,#text3#,#text4#,#text5#,#text6#, #text7#, #text8#, #text9#), (#text1#,#text2#,#text3#,#text4#,#text5#,#text6#, #text7#, #text8#, #text9#); </code></pre> <p>In a previous question someone helped me to write this regex expression to delete a value that is smalled than the example above</p> <pre><code>var stripped30 = htstring30.replace(/\((?:[^#\n]*?#[^#\n]*?#[,\s]?){0,8}\)[,;]\s*/ig, ''); </code></pre> <p>This will remove the exception below and delete it, leaving me with only the 9 tables that I want.</p> <pre><code>(#text1#,#text2#,#text3#,#text4#,#text5#,#text6#), </code></pre> <p>Now I basically want to do the same thing but this time delete all the exceptions bigger than 9 - Can anybody please assist me to do this.</p> <pre><code>(#text1#,#text2#,#text3#,#text4#,#text5#,#text6#, #text7#, #text8#, #text9#), (#text1#,#text2#,#text3#,#text4#,#text5#,#text6#, #text7#, #text8#, #text9#, #text10#), (#text1#,#text2#,#text3#,#text4#,#text5#,#text6#, #text7#, #text8#, #text9#, #text10#, #text11#); (#text1#,#text2#,#text3#,#text4#,#text5#,#text6#, #text7#, #text8#, #text9#), (#text1#,#text2#,#text3#,#text4#,#text5#,#text6#, #text7#, #text8#, #text9#), (#text1#,#text2#,#text3#,#text4#,#text5#,#text6#, #text7#, #text8#, #text9#); </code></pre> <p>So that when there is an exception bigger than 9 that I may delete it</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. 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