kepler has asked for the wisdom of the Perl Monks concerning the following question:
In fact I never understood very well this part of the regex: please supose I have these 3 different lines in array for instance:
1) func1(parameter1,"ok...", var1)2)#define "this is my name"
3) "hi"
I want to substitute the data between strings in different manner for each case. There are several almost common cases. If I create a regex for the first, how can I create a second, for the 2nd line and 3th, excluding the word function func1, for instance? The exclusion of an entire word, not just characters, all ways made me confused. And it might not be at the beggining of a sentence. I saw solutions like (?!word) that don't work... Any guidance would be apreciated...Kepler
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: String replace - Part II
by hippo (Archbishop) on Sep 21, 2016 at 09:54 UTC | |
by kepler (Scribe) on Sep 21, 2016 at 10:18 UTC | |
|
Re: String replace - Part II
by AnomalousMonk (Archbishop) on Sep 21, 2016 at 12:47 UTC | |
|
Re: String replace - Part II
by tybalt89 (Monsignor) on Sep 21, 2016 at 16:11 UTC | |
|
Re: String replace - Part II
by Anonymous Monk on Sep 21, 2016 at 15:29 UTC |