getting all data on one line? (remove breaks)

Get help with installation and running here.

Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators

Post Reply
Guest

getting all data on one line? (remove breaks)

Post 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.

example:

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!
himpie
Posts: 1
Joined: Sat Jun 04, 2005 12:58 am

Post by himpie »

hmmz...
simple \r\n removing does not work, it keeps certain returns in!
Guest

Post by Guest »

can noone help me ?
please i really need help on this one!
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Post 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

\t
Post Reply