See perldoc -f split for details.perl -le '$s = "abcabdaaa"; $n = 3; print join( "i", split( /a/, $s, $ +n+1 ))'
In reply to Re: how to search and replace the match with specific number of times in a string
by rubasov
in thread how to search and replace the match with specific number of times in a string
by loki
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |