Skip to main content
Known Participant
August 17, 2018
Answered

getPageNthWord to include hyphens

  • August 17, 2018
  • 1 reply
  • 527 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' as I'm having the 'bStrip' value as false.

I want as single word without any splits

Any kind of help is appreciated.

Thanks in advance.

This topic has been closed for replies.
Correct answer Test Screen Name

It isn’t considered a  single word, and you can’t change that, so you’d need to look for the text as successive words.

1 reply

Test Screen NameCorrect answer
Legend
August 17, 2018

It isn’t considered a  single word, and you can’t change that, so you’d need to look for the text as successive words.