Is there a string function to locate a number in an alpha-numeric string. It is typical that I get "dirty" pharamcy data: TBL_RX, field Drug_Name
Prozac 20mg, 30 $27.90
IMIPRAMINE HCL 100 mg 60 $5.75
XALATAN SOL 0.025mg/ml 30 $42.95
*Notice that there is no consistent pattern of spaces or commas in the data
I would like to create the following fields:
Drug Dose Unit Quantity Cost
Prozac 20 mg 30 $27.90
IMIPRAMINE HCL 100 mg 60 $5.75
Xalatan Sol 0.025 mg/ml 30 $42.95
Ideally I want a function to get the position of a numeral or a specific character ie dollar sign.
Thanks for the help
Paul Faculjak
paul@DataIntegritySolutions.com
Prozac 20mg, 30 $27.90
IMIPRAMINE HCL 100 mg 60 $5.75
XALATAN SOL 0.025mg/ml 30 $42.95
*Notice that there is no consistent pattern of spaces or commas in the data
I would like to create the following fields:
Drug Dose Unit Quantity Cost
Prozac 20 mg 30 $27.90
IMIPRAMINE HCL 100 mg 60 $5.75
Xalatan Sol 0.025 mg/ml 30 $42.95
Ideally I want a function to get the position of a numeral or a specific character ie dollar sign.
Thanks for the help
Paul Faculjak
paul@DataIntegritySolutions.com