Write a script for 'count the no.of digits using regular
expressions in perl..
Answer Posted / santha
$testnumber='34535sssss24';
$numbercount=0;
while($testnumber=~m{\d}igs)
{
$numbercount++;
}
print "\n $numbercount";
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
What are prefix dereferencer? List them.
What does this symbol mean '->'?
How do I replace every character in a file with a comma?
How do I debug a perl program?
Explain '->' in perl?
What can be done for efficient parameter passing in perl?
How to read from a pipeline with Perl
What is perl dbi?
What is perl shift array function?
What does 'do' statement do in perl?
What is the different between array and hash in perl programming?
What does perl do in linux?
Explain grooving and shortening of arrays?
How do I do fill_in_the_blank for each file in a directory?
How will you open a file in read-only mode in perl?