A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
I agree. Here's the link:
subject: perl String find and replace - count ?
script for help
Help In displaying properties of objects contained in ArrayList
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-2014