Skip to main content
Known Participant
August 17, 2018
Answered

getPageNthWord to include hyphens

  • August 17, 2018
  • 2 replies
  • 880 views

Working on a POC to look for pattern e.g 12345-1234 and then create a hyperlink on it using javascript.

My question is how to make 'getPageNthWord' function to include '-' while splitting words. As of now, when '-' is found, the word is cut as '12345-' and '1234'.

I want as single word without any split

Any kind of help is appreciated.

Thanks in advance.

This topic has been closed for replies.
Correct answer try67

Answered here: getPageNthWord to include hyphens

In short, you can't.

2 replies

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
August 17, 2018

Answered here: getPageNthWord to include hyphens

In short, you can't.

Bernd Alheit
Community Expert
Community Expert
August 17, 2018

Try the forum for Acrobat JavaScript.