Start learning with our library of video tutorials taught by experts. Get started

InDesign CS4 Beyond the Basics

Using GREP to find/change


From:

InDesign CS4 Beyond the Basics

with David Blatner
Expand all | Collapse all
  1. 2m 11s
    1. Welcome
      1m 3s
    2. Using the exercise files
      1m 8s
  2. 25m 16s
    1. Reviewing Control panel shortcuts
      8m 34s
    2. Managing panels
      6m 14s
    3. Letting InDesign do the math
      2m 52s
    4. Using Selection tool clicks
      1m 39s
    5. Using Quick Apply shortcuts
      3m 2s
    6. Setting up context shortcuts
      2m 55s
  3. 23m 51s
    1. Using column guides
      3m 42s
    2. Formatting and positioning guides
      5m 15s
    3. Setting first baseline options
      5m 30s
    4. Using the Document grid
      3m 13s
    5. Setting bleeds
      3m 3s
    6. Using slugs
      3m 8s
  4. 48m 2s
    1. Shuffling pages (or not)
      2m 47s
    2. Scaling objects to a specific size
      2m 32s
    3. Aligning objects to a page
      4m 41s
    4. Using advanced libraries
      4m 5s
    5. Using advanced anchored objects
      11m 21s
    6. Setting non-printing objects
      3m 10s
    7. Creating notes
      5m 23s
    8. Using Data Merge
      10m 41s
    9. Creating templates
      3m 22s
  5. 39m 32s
    1. Creating polygons and starbursts
      2m 35s
    2. Setting custom stroke styles
      5m 15s
    3. Using advanced effects
      8m 46s
    4. Making masks in InDesign
      4m 10s
    5. Integrating InDesign and Illustrator
      4m 59s
    6. Setting compound paths
      5m 4s
    7. Using advanced clipping paths
      6m 6s
    8. Using advanced image transparency
      2m 37s
  6. 55m 26s
    1. Using advanced text formatting
      5m 37s
    2. Using other languages
      4m 22s
    3. Setting advanced paragraph numbering
      3m 12s
    4. Using GREP to find/change
      6m 54s
    5. Managing glyphs
      5m 6s
    6. Finding and changing glyphs
      2m 39s
    7. Adding footnotes
      7m 57s
    8. Creating outlines
      3m 39s
    9. Setting conditional text
      9m 16s
    10. Creating cross-references
      6m 44s
  7. 33m 3s
    1. Advanced text importing
      7m 49s
    2. Using Apply Next Style
      5m 4s
    3. Advanced text styling
      6m 9s
    4. Setting load styles
      2m 58s
    5. Linking to text files on disk
      4m 1s
    6. Understanding GREP styles
      7m 2s
  8. 1h 4m
    1. Building a multi-document book
      4m 42s
    2. Setting page numbering across books
      7m 53s
    3. Setting chapter numbering
      6m 7s
    4. Using the Section Marker feature
      6m 53s
    5. Creating "Continued On..." numbers
      4m 44s
    6. Synchronizing documents in a book
      5m 41s
    7. Creating a table of contents
      11m 24s
    8. Indexing documents
      7m 24s
    9. Generating an index
      6m 47s
    10. Printing or exporting a book
      3m 10s
  9. 46m 4s
    1. Creating hyperlinks
      12m 53s
    2. Setting bookmarks
      6m 7s
    3. Creating buttons
      11m 16s
    4. Making movies
      8m 24s
    5. Creating sounds
      4m 51s
    6. Setting page transitions
      2m 33s
  10. 25m 59s
    1. Setting up swatch and style defaults
      3m 24s
    2. Using mixed ink colors
      6m 16s
    3. Working with duotones
      4m 23s
    4. Overprinting
      2m 10s
    5. Ink aliasing
      4m 50s
    6. Using the Kuler panel
      4m 56s
  11. 50m 27s
    1. Creating the transparency blend space
      4m 6s
    2. Understanding InDesign color settings
      9m 8s
    3. Assign Profile and Convert to Profile
      3m 26s
    4. Working with RGB images
      7m 54s
    5. Working with CMYK images
      6m 28s
    6. Soft-proofing
      5m 18s
    7. Managing color at print time
      7m 25s
    8. Managing color in a PDF export
      6m 42s
  12. 42m 1s
    1. Embedding preflight profiles
      5m 1s
    2. Using the Transparency Flattener preview
      3m 23s
    3. Reviewing Transparency Flattener settings
      6m 30s
    4. Setting print presets
      3m 35s
    5. Setting PDF presets
      3m 21s
    6. Exporting to XHTML
      7m 42s
    7. Exporting to SWF
      6m 45s
    8. Exporting to XFL
      5m 44s
  13. 25m 58s
    1. Understanding XML and InDesign
      6m 51s
    2. Structuring InDesign content
      4m 17s
    3. Importing XML
      6m 57s
    4. Exporting to XML
      7m 53s
  14. 34s
    1. Goodbye
      34s

Video: Using GREP to find/change

GREP is a way to do sophisticated searches throughout your text. For example, let's say you want to find two or more spaces, regular spaces, Em spaces, Thin spaces, whatever, and then you want to change them all into a single space. Now you know you can open the Find Change dialog box by pressing Command+F or Ctrl+F on Windows, but what are you going to type here in the Find what field? This search is just too complicated for this simple field because we want to find all different kinds of spaces. Well fortunately, InDesign can do a GREP search for this. So I will click on the GREP tab and I will type in some codes for find all those different kinds of white spaces. Well in this case, I am going to start simple. I am not going to type the codes in myself, I am going to choose it from the Query popup menu, because Adobe was kind enough to give us the multiple space to single space query, and you can see that it actually types in all this code for me.

Watch this entire course now—plus get access to every course in the library. Each course includes high-quality videos taught by expert instructors.

Become a member
Please wait...
InDesign CS4 Beyond the Basics
8h 3m Intermediate Dec 05, 2008

Viewers: in countries Watching now:

David Blatner brings his knowledge of and passion for InDesign to the latest release of this state-of-the-art publishing program, showing how to harness its power and functionality. InDesign CS4 Beyond the Basics covers the process of publishing with an eye on the program's latest nuances: optimizing page layouts, automating InDesign with Data Merge and XML, exploring interactive documents (including making movies), and exporting publications to a variety of formats. Exercise files accompany the course.

Topics include:
  • Automating with Data Merge and XML
  • Optimizing page layouts
  • Using advanced effects
  • Creating interactive documents
  • Integrating with Illustrator
Subject:
Design
Software:
InDesign
Author:
David Blatner

Using GREP to find/change

GREP is a way to do sophisticated searches throughout your text. For example, let's say you want to find two or more spaces, regular spaces, Em spaces, Thin spaces, whatever, and then you want to change them all into a single space. Now you know you can open the Find Change dialog box by pressing Command+F or Ctrl+F on Windows, but what are you going to type here in the Find what field? This search is just too complicated for this simple field because we want to find all different kinds of spaces. Well fortunately, InDesign can do a GREP search for this. So I will click on the GREP tab and I will type in some codes for find all those different kinds of white spaces. Well in this case, I am going to start simple. I am not going to type the codes in myself, I am going to choose it from the Query popup menu, because Adobe was kind enough to give us the multiple space to single space query, and you can see that it actually types in all this code for me.

Now I am not going to get into the details of all the different kinds of things you can do with GREP, but I will tell you that these codes mean all the different spaces that you can type in InDesign, single regular space, and quarter spaces, and six spaces, and thin spaces and so on. And it just says, find anyone of those type of things, and then there is a thing over here in the curly braces, 2,, and that means find two or more of them in a row. Now what are we going to replace that with? Well, this \s. What does that mean? Well that is the special GREP code for a regular plain old space. So find two or more of a bunch of different kinds of spaces and replace that with a regular space. Let's try it out. Click Change All. It found three of them. Those are three that would have been difficult for me to find manually, then click OK, and we are done.

Now GREP seems scary at first, but if you take it slow, it's really not that hard. Let me delete that, and I will delete this and let's build our own GREP code. Now I don't need to remember all the codes myself because of this little fly out menu, the one that has a little @ sign. I don't know why Adobe chosen @ sign, it makes no sense to me but that's what you need to look at, and I am going to search for all of the percentages in my document. Anything that's a percentage, could be 1%, or a 20%, or a 100%, so it might have one digit, two digits, three digits, I don't know, but all I know is that its one or more digits followed by a percentage sign.

So we need to find the code to do that. So I am going to go to that little fly out menu and we can see that I can choose among all these different kinds of symbols and spaces and so on. In this case, I want to find digits, any digit. So I am going to go down to the Wildcard fly out menu and choose Any Digit. So this is the code for Find any digit, but I need one or more of those. So how do I do that? I will go back to that fly out menu, go down to the Repeat submenu and I want to say, Find One or More of these, and I am going to say the Shortest Match, and I don't want to get in the technical details of why I say Shortest Match, but basically it's just the one or more digits in a little clump, basically a clump of those.

Now, I am going to search for the percentage sign. The percentage sign, I happen to know, is not any kind of special character, so I can just type the %, which on the US keyboard is just Shift+5. So it's going to find a percent. Now let's try it out. I will click Find, and I will move this out of the way so we can see what it's found. There it is, right down there. I will zoom in there, there it is. I found that 7%. Boom! Right there. Let's try another one. Find next, it found 85%. So the search is working, we type the code for one or more digits followed by a % sign. Pretty cool! We are getting more efficient here. Now that I am feeling a little bit more warmed up to GREP, let's try a really complex one. I am going to de-select that, come back to the Find Change dialog box here, and I am going to find any text inside parenthesis. Now I am going to change the formatting of any text that I find inside of parenthesis.

Okay, now how do we do that? Well, we know that the first character is going to be an open parenthesis, but we don't want to change that parenthesis sign, we just know that it's before the text that we do want to change. So we are going to use this wacky feature down here in the Match fly out menu, called Positive Lookbehind. That means I am positive that behind the text that I am looking for, there is a parenthesis. So I need to put that parenthesis in between the equal and that parenthesis right there, and I can't just type an open parenthesis because in GREP, some characters are special characters, and parenthesis is one of them.

So I need to go to the fly out menu and choose from the Symbols pop out menu, I am going to choose Open Parenthesis. So this means, find any text in which the character before the text is a parenthesis. Got it? Now, I need to find all those characters. It could be any kind of character. I don't know what it's going to be in there. It's not just digits, it's not just letters, it could be anything. So I will go to the flyout menu, I will choose Wildcards, and then I will choose Any Character. The symbol for that is a little dot or a period.

Now I need one or more of those. So I will go down here one more time to the Repeat fly out menu and choose One or More Times (Shortest Match). Find me a clump of characters that are inside parenthesis. We know that the character before is an open parenthesis, now we need to say the character after is going to be a closed parenthesis. So I will go back to say I want to find a Positive Lookahead, in other words the character after the text that I am finding here is going to be a parenthesis, and that one is going to be a symbol called the Closed Parenthesis character.

That was a lot of work, but it could save us a lot of time if it works. Now, what I said was I wanted to change the formatting of that text. So I am going to leave Change To blank. When you Find What and Leave Change to blank, it means find something but don't change it, as long as we have formatting down here. So I will click down in the Change Format area and I am going to -- let's say, I will just change the color of it. I will make it Magenta and why don't I change the fonts to something different like Myriad, Bold Italic, sure why not, Myriad Bold Italic.

Click OK, and now we are going to try it out to see if it works. I will click Find, and look at that, it found all the text inside parenthesis but not including the parenthesis themselves. Now I will click Change to see if to works. There you go. It applied the formatting to that text. Click Find next, and it found a bunch of text here. Change it, looks good, find it, change it, and so on, and of course I could use Change All or Find Change and you get the idea. So it found all of those throughout the entire document.

In the later chapter, I cover even more things that you can do with GREP. It's an incredibly powerful language for doing Find Change operations, and while that takes a bit of time to master, you more than make up for it in the time that you save down the road.

There are currently no FAQs about InDesign CS4 Beyond the Basics.

Share a link to this course
Please wait... Please wait...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.
Upgrade now


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Upgrade now

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed InDesign CS4 Beyond the Basics.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Welcome to the redesigned course page.

We’ve moved some things around, and now you can



Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked