Skip to main content
andrée91081766
Participant
February 13, 2017
Question

Check the complete Book

  • February 13, 2017
  • 1 reply
  • 732 views

Hi Scripter,

we want to check all the text content within a book with a regular expression and JavaScript.

We have no idea how it works.

Can someone help us?

Thank you.

This topic has been closed for replies.

1 reply

Klaus Göbel
Legend
February 13, 2017

Hi andrée91081766,

you can do this without ExtendScript.

Open Search-window (ctrl-f),

select "text

type in your regular expression

select "regular expression"

select "Book". (search in)

That's it.

[EDIT] You need at least FM 12 for regexp

andrée91081766
Participant
February 13, 2017

Hi Klaus,

anhand des Namens glaube ich, Du versteht Deutsch

Das macht mir die Erklärung einfacher.

Wir möchten per Script auf mehrere Bücher sehr viele RegEx anwenden.

Die Logik um den Text zu druchsuchen und in einer Schleife die RegEx anzuwenden ist nicht das Problem.

Mein Problem liegt beim Auslesen des kompletten Textes im Buch.

Vielen Dank schonmal für Deine Antwort.

VG
André

Klaus Göbel
Legend
February 13, 2017

Hi André,

my answer is in English, because not all of the other supporter here in the forum speek German.

I just summarize your answer in English:

You try to read the found text.

- You can replace the found text with search/replace, also

Or what do you want to do with that text?

When you say complete text, do you mean the whole text of the paragraph or what exactly do you mean with "complete text"

Could you plese describe a little more in detail, what you are trying to achieve?