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

Write a script to reverse a string without using perl's built in functions?

929


List the prefix dereferencer in Perl.

881


Explain perl. What are the advantages of programming in perl?

969


Define perl scripting?

930


What is hash?

961


Give an example of the -i and 0s option usage.

834


How to code in perl to implement the tail function in unix?

884


What syntax is used for grep() function?

1088


Which functions in Perl allows you to include a module file or a module and what is the difference between them?

935


What is the main function of cookie server?

1005


Why to use perl scripting?

931


what is CPAN?

926


Explain USE and REQUIREMENT statements?

882


Which guidelines by Perl modules must be followed?

965


What are the advantages of perl programming?

945