Can GREP re-arrange text?
Hello, I'm working on a big catalogue project. The data underneath each book is already there in the old designer's files, but my client wants to change the order in which the text is seen. I have felt very clever this morning for discovering GREP and I've managed to get it to apply a specific character style to words inbetween parantheses with \((.*?)\) but re-arranging text is just so far beyond me. With a tight deadline, I do not have the time to learn GREP right now and I'm hoping someone can help me out with this.
The current text is like this:
Book Name
ISBN
Additional info
Real example:
Ready for Reading Phonics (Wipe-Clean)
9781474 93694 1
Age 4+ | Gareth Williams
Repeated over and over. They are separated with a new column break at the end of the book title before the next ISBN starts at the top of the next column (except of course the last book in the last column) of that text box.
What I need it to look like is:
9781474 93694 1
Age 4+ | Gareth Williams
Ready for Reading Phonics (Wipe-Clean)
Rather than cutting the book title from the top line and pasting it to be the bottom line thousands of times, I'm hoping there might be some GREP code which can just do it for me?
Sometimes the ISBN has a price on the same line as it, and I need the price to get cut off and put on a new line. And sometimes there is no extra information under the ISBN, it would just be ISBN, paragraph break, Book Title. However... if that is too complicated just being able to have the book titles automatically moved to be underneath everything else would save me from doing that particular cut and paste a few thousand times.
9781474 93694 1 $11.95
Age 4+ | Gareth Williams
I need to be:
9781474 93694 1
$11.95 | Age 4+ | Gareth Williams
I have become aware that the | means "or" in GREP. Here I am using it as a visual separator.
Pehaps due to my lack of understanding of GREP this is not something that it can do. But if it can... oh my word would this save me hours and hours of work.
