Find knowledge base article(s) by searching for keywords in the title e.g. type linux in the search box below
Find knowledge base article(s) by browsing the subject categories of articles
Technology quick references, cheatsheets, user manuals etc.
Shop Online through ShopifyLite
Tutorials on various IT applications.
Search Title    (UL:0 |SS:f)

Scripting >> Perl >> How to count the number of occurrences of a substring in a string

eg. To count the number of pagenums in a html buffer $count=0; while ($html =~ /pagenum/g) { $count++ } print "There are $count pagenums";
[ © 2008-2021 myfaqbase.com - A property of WPDC Consulting ]