Page 1 of 1

getting all data on one line? (remove breaks)

Posted: Sat Jun 04, 2005 1:05 am
by Guest
i'm new to textpipe and so far i haven't been able to
find a solution to a (in my eyes not so difficult?) problem.

i have a .txt file containing multiple lines.
for getting them into my database, i need them
on one line, seperated by tabs. getting the tabs
there is no problem, i could even fix that in wordpipe.


name: joop
year: 2000
age: 50

the layout is the same in every document (don't know
if that helps any :P)

now, i think i need multiple filters:

remove name:
remove year: ---> and replace it with a backspace or so ? and then a tab
remove age: ---> and remove the break before it here too, and then a tab

so it will look like this:

joop TAB 2000 TAB 50

can anyone help me with this...?
would save me 500 of manual db entrys (this is the only
missing link into getting all my records in the db)

thanks in advance!

Posted: Sat Jun 04, 2005 1:52 am
by himpie
simple \r\n removing does not work, it keeps certain returns in!

Posted: Mon Jun 06, 2005 1:49 am
by Guest
can noone help me ?
please i really need help on this one!

Posted: Mon Jun 06, 2005 11:12 am
by DataMystic Support
Your file probably has both \r\n and \n characters in it.

Why don't you just add 3 search/replace filters as you have described?

You could also use a perl or EasyPattern match to match all three lines together.

Note: A tab is