Skip to main content
Ryan_Oliver_02445
Known Participant
January 25, 2019
Answered

How to extract values in a string separated by tabs

  • January 25, 2019
  • 2 replies
  • 480 views

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 has been closed for replies.
Correct answer try67

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
January 25, 2019
Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
January 25, 2019

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