File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
perl String find and replace - count ?
Joined: Apr 08, 2004
Jul 15, 2011 01:35:03
perl -pi -e 's/sample1/sample2/g' *.* replaces
value sample1 with sample2 globally. How do i add count (number of times sample1 string replaced) ?
Joined: Oct 02, 2003
Jul 19, 2011 07:05:25
perlmonks is always a great place to search. I found
, which appears to be your exact question.
Never ascribe to malice that which can be adequately explained by stupidity.
I agree. Here's the link:
subject: perl String find and replace - count ?
Help In displaying properties of objects contained in ArrayList
script for help
Single type import error.
Is it possible to call a action of one war file from action of another war file?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013