Skip to main content
Participant
January 14, 2020
Question

Search for two words starting with specific letters

  • January 14, 2020
  • 3 replies
  • 1347 views

Hi,

 

how to search for text within a PDF file that contains 2 words starting with specific letters?

 

example:

C*** D***

This topic has been closed for replies.

3 replies

try67
Community Expert
Community Expert
January 14, 2020

You will need to use a script. The basic command to use is getPageNthWord, which needs to be placed inside a double-loop, one over all the pages in the file and another one over all the words in each page. You can then use a regular expression to check the first letter of each word.

Bernd Alheit
Community Expert
Community Expert
January 14, 2020

It is possible with Javascript code.

Known Participant
January 14, 2020

Don't know the answer, but I think everyone who sees the post definitely knows the full terms of the words you used in the example, so why censor them? 😄 

Participant
January 14, 2020

Not sure if you're joking or not. 🙂

 

I'm giving an example for 2 words starting with C and D respectively. Like caramel donut 🙂 

 

Anyone can help please? Thanks!