greatwazzoo has asked for the wisdom of the Perl Monks concerning the following question:
that is the "\*" x 80 , within the regular expression,..or something to that effect.,perl -pi -e 's/^\-{40,40}^M*$/((\*) x 80)/' logfile
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Is it possible to use repetition within a Regular Expression Substitution?
by shmem (Chancellor) on Mar 20, 2010 at 01:13 UTC | |
|
Re: Is it possible to use repetition within a Regular Expression Substitution?
by ikegami (Patriarch) on Mar 20, 2010 at 02:45 UTC | |
|
Re: Is it possible to use repetition within a Regular Expression Substitution?
by ww (Archbishop) on Mar 20, 2010 at 01:30 UTC | |
|
Re: Is it possible to use repetition within a Regular Expression Substitution?
by JavaFan (Canon) on Mar 20, 2010 at 13:14 UTC | |
|
Re: Is it possible to use repetition within a Regular Expression Substitution?
by Anonymous Monk on Mar 20, 2010 at 03:39 UTC |