Matching a word with dot symbol using regexp javascript
<p>I have a search feature. I want to check if the user enter a text word/sentence with dot (.) on it. </p>

<pre><code>Example:
-anyword.anyword.
-.
-.anyword
</code></pre>

<p>Once I detect that he/she entered a value that has a dot on it I will consider that as invalid.</p>

<p>I know I can do this using regexp but I'm still in the process of learning it. So anyone could shed me a light here would be appreciated :). </p>
