in reply to Re: Ignore given character from file
in thread Ignore given character from file
ok you are right it was easy,but may I ask another question? if you have
my $sentence = 'The quick brown fox jumped over the lazy dog'; my $substring = 'quick.*?fox'; $sentence =~ s{$substring}{big bad wolf};
you get an output of 'The big bad wolf jumped over the lazy dog',but how can I tell him to ignore even "The" from the sentence but not by using :
my $sentence = 'The quick brown fox jumped over the lazy dog'; my $substring = 'The.*?fox'; $sentence =~ s{$substring}{big bad wolf};
but by telling him to ignore 4 characters before "quick"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Ignore given character from file
by hippo (Archbishop) on Jan 13, 2016 at 11:56 UTC | |
by N0obieMonk (Novice) on Jan 13, 2016 at 12:07 UTC | |
by Athanasius (Archbishop) on Jan 13, 2016 at 12:24 UTC | |
by N0obieMonk (Novice) on Jan 13, 2016 at 12:33 UTC | |
by hippo (Archbishop) on Jan 13, 2016 at 12:24 UTC |