Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I'm not sure what kind of 'list of websites' you're referring to, but for eg. a comma-separated file of websites you could read the entire file and use the <code>String</code> <code>split</code> function to get an array, or you could use a <code>BufferedReader</code> to read the file line by line and add to an <code>ArrayList</code>.</p> <p>From there you can simply loop the array and append to a <code>String</code>, or if you need to:</p> <blockquote> <p>do a "block escape", so everything in between the "block" is escaped</p> </blockquote> <p>You can use a Regular Expression to extract parts of each <code>String</code> according to a pattern:</p> <pre><code>String oldString = "&lt;someTag&gt;I only want this part&lt;/someTag&gt;"; String regExp = "(?i)(&lt;someTag.*?&gt;)(.+?)(&lt;/someTag&gt;)"; String newString = oldString.replaceAll(regExp, "$2"); </code></pre> <p>The above expression would remove the xml tags due to the <code>"$2"</code> which means you're interested in the second group of the expression, where groups are identified by round brackets <code>( )</code>. Using <code>"$1$3"</code> instead should then give you only the surrounding xml tags.</p> <p>Another much simpler approach to removing certain "blocks" from a <code>String</code> is the <code>String</code> <code>replace</code> function, where to remove the block you could simply pass in an empty string as the new value.</p> <p>I hope any of this helps, otherwise you could try to provide a full example with you input "list of websites" and the output you want. </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.
    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