Decompose URLs into multiple keyword arrays
<p>I need a script in jQuery with the following features:</p>

<ol>
<li>Gets actual URL of the page</li>
<li>Depending on that URL search for words in that URL (utf-8 and ISO)</li>
<li>Display or execute a given code (jQuery code) depending on words found in URL</li>
</ol>

<p>I need to use multiple words in multiple arrays and add arrays easily.</p>

<p>For example:</p>

<pre><code>array 1 --&gt; apple, pear, strawberry, etc --&gt; display a given html
array 2 --&gt; chicken, meat, lamb, etc --&gt; display a given html
array X --&gt; xxxx, xxxx, xxxx,
last array --&gt; every word that doesnt match with array 1 or 2 or X ----&gt; display a given html
</code></pre>
