S
silva
I plan on creating a DB using a .csv file that's automatically generated.
Since commas are only being used as delimiteers and nothing else, it
shouldn't represent a problem intially populating a table. However, one field
(call it Field A) contains three field's worth of information, some of which
is extraneous, and another field (we'll call it Field B) contains two field's
worth of information, again some being extraneous. For example, I'll use @ to
designate an alpha character and # as a numeral:
Field A
@@@ ##-@@@@@-@@ ##
@@@ #-@@@@-@@@@-@@ ##
Field B
## @@@@@@@@
# @@@@@@@@
In Field A, the first and last dash is essentially a delimiter. At times
there is one in the middle, but it's part of the text of the middle value,
and using a dash as a delimiter to seperate the data causes problems. The
first value is extraneous as it has another field. This data is displayed
three times. Anyway, for Field A, all I want is the data after the last dash,
at the end of the field, which is always two letters, a space, then two
digits.
In Field B, I want to remove the digits that begin the value each time. They
are unnecessary, and since I have no access to what creates this text
document, I can't remove it before it is generated. How do I get rid of the
preceding digits?
If it helps, Field A's data is Location #-Location Name-Terminal #, Field
B's data is Location # Location Name. Annoyingly enough, what I'll call Field
C, is nothing but Location #.
Since commas are only being used as delimiteers and nothing else, it
shouldn't represent a problem intially populating a table. However, one field
(call it Field A) contains three field's worth of information, some of which
is extraneous, and another field (we'll call it Field B) contains two field's
worth of information, again some being extraneous. For example, I'll use @ to
designate an alpha character and # as a numeral:
Field A
@@@ ##-@@@@@-@@ ##
@@@ #-@@@@-@@@@-@@ ##
Field B
## @@@@@@@@
# @@@@@@@@
In Field A, the first and last dash is essentially a delimiter. At times
there is one in the middle, but it's part of the text of the middle value,
and using a dash as a delimiter to seperate the data causes problems. The
first value is extraneous as it has another field. This data is displayed
three times. Anyway, for Field A, all I want is the data after the last dash,
at the end of the field, which is always two letters, a space, then two
digits.
In Field B, I want to remove the digits that begin the value each time. They
are unnecessary, and since I have no access to what creates this text
document, I can't remove it before it is generated. How do I get rid of the
preceding digits?
If it helps, Field A's data is Location #-Location Name-Terminal #, Field
B's data is Location # Location Name. Annoyingly enough, what I'll call Field
C, is nothing but Location #.