Re: A s/// brain teaser to share

2018-05-04 Thread ToddAndMargo
On 05/04/2018 08:27 AM, yary wrote: I understand your issues- try the regexp in my recent post, without splitting & re-joining. Also, the margin removal aka "remove the final slash an what's after it" can be simpler. my $LabelStr='"00046436405","HALT 3/4" ORIG LNG #35-1333-RD/.55 + SHP",""," 

Re: A s/// brain teaser to share

2018-05-04 Thread yary
I understand your issues- try the regexp in my recent post, without splitting & re-joining. Also, the margin removal aka "remove the final slash an what's after it" can be simpler. my $LabelStr='"00046436405","HALT 3/4" ORIG LNG #35-1333-RD/.55 + SHP",""," 3/4"," don\'t give an""," 0

Re: A s/// brain teaser to share

2018-05-04 Thread Todd Chester
On 05/03/2018 10:52 PM, yary wrote: What you really want is to change a quote to "inch" if the quote is not at the start of the line, not preceeded by a comma, not followed by a comma, and not at the end of a line. $LabelStr ~~ s:global|"3/4\""|3/4 inch|; But that will only fix inch when it

Re: A s/// brain teaser to share

2018-05-03 Thread yary
What you really want is to change a quote to "inch" if the quote is not at the start of the line, not preceeded by a comma, not followed by a comma, and not at the end of a line. > $LabelStr ~~ s:global|"3/4\""|3/4 inch|; But that will only fix inch when it is after 3/4 how about > $_='"6" hand"

Re: A s/// brain teaser to share

2018-05-02 Thread James Ellis Osborne III
Don't say innocent if you mean punchline. On Tue, May 1, 2018, 10:46 PM ToddAndMargo wrote: > Hi All, > > You guys will noticed a bunch of things you have been helping me with > in the following. Thank you! > > :-) > > I have been working on cleaning up the file transfer of data from a > point

A s/// brain teaser to share

2018-05-01 Thread ToddAndMargo
Hi All, You guys will noticed a bunch of things you have been helping me with in the following. Thank you! :-) I have been working on cleaning up the file transfer of data from a point of sale software (POS) program to a label printer. The customer puts his margin on the end of the descriptio