Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Here is the data in one element of an array
D RTVX/TN 890-567-4567/CFDN/LCC 888/MSS *456LSL MSSSSSS/LEFV
I need to do the following:
Match everything between the "/"'s if it starts with /MSS, and delete out the space, unless there is a * after the space.
So my data would then look like this:
D RTVX/TN 890-567-4567/CFN/LCC 888/MSS *445LSLMSSSSSS/LEFV
Is this possible? If so, could someone show me how?
Edit by tye. Will be moved to Seekers of Perl Wisdom soon.
Originally posted as a Categorized Question.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How do I match for a pattern in an array element delimited with a /
by nothingmuch (Priest) on Oct 18, 2002 at 21:03 UTC | |
Re: How do I match for a pattern in an array element delimited with a /
by Roy Johnson (Monsignor) on Oct 28, 2003 at 20:42 UTC | |
by Roy Johnson (Monsignor) on Feb 02, 2004 at 19:14 UTC |
Back to
Seekers of Perl Wisdom