Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
We're going to go ahead and learn how you can use grep in combination with conditional text to create two different versions of this catalog. Let's say I wanted to produce one in the spring and one in the fall and the one in the spring I did not want to include the September dates. While I can manually go in there and just delete them, but I think there is a much better way to do it. I'm going to go under my Window > Type & Tables, and open up my Conditional Text panel. I'm going to go make a new conditional text layer and call it Fall. Next I'm going to go under Edit and go to Find/Change, and I want to make a grep statement that searches for the month of September followed by a date.
It could be September 1st; it could to be September 21st. I just know it includes a month along with one or more digits. I also want to capture the comma that comes before September. So I want to go ahead and make a very simple grep statement here and type in the month, and then I said it might contain one or more digits. I'm going to go ahead and enter that. And then I also want to capture that period at the end. If I'm removing September, I also want to remove that period after September 24th in this case. Next, I'm going to go down and choose, under Change Format > Conditions, and I'm going to pick that new Fall condition that I just created, and I'll click OK.
Next, I want to hit Find. I notice it searches for and finds the comma, the month, the day, and the period. When I say Change, it's going to move it to that conditional player. I want to say Change All and it changed all eight occurrences of it. And next, I want to go close this out, and I'm going to turn off this Conditional Text layer, and I notice that that month and that day are no longer there. Again, it doesn't delete it; it just simply turns it off for now, so I can print a version in the spring and again in the fall.
So we learned by using conditional text layers along with grep I can create different versions of my catalog very efficiently.
Get unlimited access to all courses for just $25/month.Become a member
119 Video lessons · 49811 Viewers
117 Video lessons · 37093 Viewers
113 Video lessons · 81135 Viewers
65 Video lessons · 10406 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
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.
Your file was successfully uploaded.