Looks like HL7-------- Original Message --------
Subject: [WebDNA] Converting | to TAB
From: Stuart Tremain <webdna@idfk.com.au>
Date: Tue, March 16, 2010 7:03 pm
To: talk@webdna.us
I am having a hell of a time replacing pipes to tabs in this:6161530035322|90776|1304|MR|JOHN|JONES|18 ORWELL LODGE, MAIN ST|JIMMYS POINT||NSW|2011||13/07/1970|M|262614001|262614001|1|1|NONE|15/02/2010|138|27.6|09/02/2010|30/09/2010|1|4301|OP|HOLDSWORTH|SHARON|s||||||57728|0|||0414169006|AU|OPSM|noIf I use grep:[grep search=\|&replace=[tab]&ignorecase=T]6161530035322|90776|1304|MR|JOHN|JONES|18 ORWELL LODGE, MAIN ST|JIMMYS POINT||NSW|2011||13/07/1970|M|262614001|262614001|1|1|NONE|15/02/2010|138|27.6|09/02/2010|30/09/2010|1|4301|OP|HOLDSWORTH|SHARON|s||||||57728|0|||0414169006|AU|OPSM|no[/grep]It replaces 2 or more pipes with only 1 tabIf i put a letter between the pipes, I get the result required.Any hints ???
|
Looks like HL7-------- Original Message --------
Subject: [WebDNA] Converting | to TAB
From: Stuart Tremain <webdna@idfk.com.au>
Date: Tue, March 16, 2010 7:03 pm
To: talk@webdna.us
I am having a hell of a time replacing pipes to tabs in this:6161530035322|90776|1304|MR|JOHN|JONES|18 ORWELL LODGE, MAIN ST|JIMMYS POINT||NSW|2011||13/07/1970|M|262614001|262614001|1|1|NONE|15/02/2010|138|27.6|09/02/2010|30/09/2010|1|4301|OP|HOLDSWORTH|SHARON|s||||||57728|0|||0414169006|AU|OPSM|noIf I use grep:[grep search=\|&replace=[tab]&ignorecase=T]6161530035322|90776|1304|MR|JOHN|JONES|18 ORWELL LODGE, MAIN ST|JIMMYS POINT||NSW|2011||13/07/1970|M|262614001|262614001|1|1|NONE|15/02/2010|138|27.6|09/02/2010|30/09/2010|1|4301|OP|HOLDSWORTH|SHARON|s||||||57728|0|||0414169006|AU|OPSM|no[/grep]It replaces 2 or more pipes with only 1 tabIf i put a letter between the pipes, I get the result required.Any hints ???
DOWNLOAD WEBDNA NOW!
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...