![]() It’s located at the top of the dialog box.) (Several sample searches – including a phone number formatting query – are already saved as a sample searches in InDesign. GREP is amazingly powerful and you can build a GREP search for anything with a pattern. And GREP is perfect for standardizing the formatting of a phone number across an entire document. ![]() I’ve used GREP to replace dashes or periods at the beginning of lines. And while it works, a reader pointed out correctly that a better search would have been “^\s+” which would have found one or more spaces at the beginning of a line. Without having to go through line-by-line…ĮDIT: Above, I set up the search with the ^ (to find the beginning of the paragraph) and a space after it. I left the “Change to” field blank, clicked “Change All” and several thousand instances were changed instantly. So I typed “^ ” (there is a space after the ^) in the “Find what” field – which tells InDesign to find one space at the beginning of any paragraph. For example, go to “Locations>Beginning of a Paragraph” and InDesign inserts a “^” into the field. Next to the find and change fields are flyout menus (marked with that give you shortcuts to all of the variables. Find all spaces at the beginning of the paragraph and replace with nothing. Basically, it lets you look for patterns and allows you to do find and replace based on those patterns. GREP is a text search function originally written for UNIX. ![]() In InDesign CS3 and CS4, you can choose to do GREP find and change. ![]() So how do you take out random spaces at the beginning of text? In a table? Without doing it manually? (Because I have much better things to do than going through a 100+ page document line-by-line…) What is GREP? So the left edge of the table looked ragged. The table needed to be placed into InDesign. I received a file containing 100 pages of information in a table. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |