Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What are prefix dereferencer? List them.

1022


What does this symbol mean '->'?

1078


How do I replace every character in a file with a comma?

1042


How do I debug a perl program?

1030


Explain '->' in perl?

974


What can be done for efficient parameter passing in perl?

950


How to read from a pipeline with Perl

1101


What is perl dbi?

931


What is perl shift array function?

1018


What does 'do' statement do in perl?

1053


What is the different between array and hash in perl programming?

990


What does perl do in linux?

991


Explain grooving and shortening of arrays?

1126


How do I do fill_in_the_blank for each file in a directory?

1008


How will you open a file in read-only mode in perl?

958