Re: search replace one liner problem

2007-10-09 Thread jrpfinch
Thanks very much - this works Jon -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

search replace one liner problem

2007-09-17 Thread jrpfinch
I would like to execute the following regex on a file: s/(\$Revision:\s+)(\d+\.\d+)(\s+\$.+use constant VERSION\s+= )(.+?) ()/$1$2$3Revision $2$5/gs I am doing this in bash as follows: REGEX='s/(\$Revision:\s+)(\d+\.\d+)(\s+\$.+use constant VERSION\s+= ) (.+?)()/$1$2$3Revision $2$5/gs'

Re: search replace one liner problem

2007-09-17 Thread John W. Krahn
jrpfinch wrote: I would like to execute the following regex on a file: s/(\$Revision:\s+)(\d+\.\d+)(\s+\$.+use constant VERSION\s+= )(.+?) ()/$1$2$3Revision $2$5/gs I am doing this in bash as follows: REGEX='s/(\$Revision:\s+)(\d+\.\d+)(\s+\$.+use constant VERSION\s+= ) (.+?)()/$1$2$3Revision