Tema: Re: JavaScript klaida ?
Autorius: simutis
Data: 2011-12-19 12:41:33
Ne klaida.

Iesko ne pagal stringa, o pagal regexp'a.

.. = single character, except newline or line terminator

Jei nori, kad ieskotu ".", reikia escapint.


"-=Valdas=-"  wrote in message news:jcmluf$4lc$1@trimpas.omnitel.net... 

Na niekaip nesuprantu kodel suranda:

<script>
a="2011112";
t=a.search("2011.12");
alert(t);
</script>

gal kas turit minciu ?