Forum Moderators: open
does this help at all...
<script type="text/javascript">var matches=[];
var strings=[
'Today is Saturday 24th',
'No. 120 Ridge Road',
'Sunday 16th December',
'This is Webmaster World',
'I am 43 years old',
'I moved house on the 30th',
'My salary is £20k per annum'
];for(c=0;c<strings.length;c++) {
if(matches[c]=strings[c].match(/\d{1,}\.{0,}\d{0,}/)){;
alert('string '+(c+1)+ ', contains the number...\n\n '+matches[c]);
}
else {
alert('string '+(c+1)+ ', contains no numbers');
}
}</script>
No problem, you're welcome. ;)