<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[primo carattere deve essere numero no punto]]></title><description><![CDATA[<p dir="auto">salve a tutti,<br />
uso questo script in un campo input che mi controlli che ci siano solo numeri e solo un punto, e fin qui tutto ok.<br />
come posso modificarlo per aggiungere un ulteriore controllo che mi verifichi che il primo carattere inserito sia un numero e non un punto?<br />
Grazie</p>
<pre><code>&lt;input type="text" oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1');" /&gt;
</code></pre>
]]></description><link>https://dev.connect.gt/topic/191648/primo-carattere-deve-essere-numero-no-punto</link><generator>RSS for Node</generator><lastBuildDate>Wed, 25 Nov 2026 17:03:17 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/191648.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 18 Jul 2019 14:15:23 GMT</pubDate><ttl>60</ttl></channel></rss>