Skip to main content
Ryan_Oliver_02445
Known Participant
Jan 25, 2019 6:37 PM UTC
Answered

How to extract values in a string separated by tabs

Good evening, I am attempting to extract multiple variables in a line which is separated by tabs.

Here is an example of the line:

    ALPRAZOLAM XANAX ANXIETY F41.1

    ALPRAZOLAM XANAX DEPRESSION F33.0

How would one go about extracting the individual values from this line?

This topic is closed to new replies. Start a new post to keep the conversation going.
try67
try67Correct answer
Community Expert
Jan 25, 2019 8:01 PM UTC

Using the split command, and specify the tab character ("\t") as the delimiter. It returns an array of strings.

2 replies

Thom Parker
Community Expert
Community Expert
Jan 25, 2019 9:07 PM UTC
Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
Jan 25, 2019 8:01 PM UTC

Using the split command, and specify the tab character ("\t") as the delimiter. It returns an array of strings.

Translate