data67 has asked for the wisdom of the Perl Monks concerning the following question:
I have a data-file like so:
1..., some words, Dec 13, 2001 2..., some words, Jan 02, 2002
What i want to do is to be able to is go through each line and be able to search the first field. which is my identifier and if condition matches, append "somethng" to the end of that same line not new line.
Example: search for question 1.
if true?1..., some words, Dec 13, 2001 2..., some words, Jan 02, 2002
-------------------- Thanks!!!!!!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regex that will append to end of same line
by rbc (Curate) on Jan 04, 2002 at 01:44 UTC | |
by Juerd (Abbot) on Jan 04, 2002 at 02:05 UTC | |
by rbc (Curate) on Jan 04, 2002 at 03:04 UTC | |
|
Re: Regex that will append to end of same line
by rbc (Curate) on Jan 04, 2002 at 00:55 UTC | |
by data67 (Monk) on Jan 04, 2002 at 01:13 UTC | |
|
Re: Regex that will append to end of same line
by data67 (Monk) on Jan 04, 2002 at 01:32 UTC | |
by Juerd (Abbot) on Jan 04, 2002 at 01:41 UTC | |
by talexb (Chancellor) on Jan 04, 2002 at 01:37 UTC |