618535
132
Zoom out
Zoom in
Previous page
1/341
Next page
127
Tex t
Last updated 6/15/2014
GREP search examples
Follow these examples to learn how to take advantage of GREP expressions.
Example 1: Finding text within quotation marks
Suppose you want to search for any word enclosed in quotation marks (such as “Spain”), and you want to remove the
quotation marks and apply a style to the word (so that it becomes Spain instead of “Spain”). The expression (")(\w+)(")
includes three groupings, as indicated by parentheses ( ). The first and third groupings search for any quotation mark,
and the second grouping searches for one or more word characters.
You can use the Found Text expressions to refer to these groupings. For example, $0 refers to all found text, and $2 refers
to only the second grouping. By inserting $2 in the Change To field and specifying a character style in the Change
Format field, you can search for a word within quotation marks, and then replace the word with a character style.
Because only $2 is specified, the $1 and $3 groupings are removed. (Specifying $0 or $1$2$3 in the Change To field
would apply the character style to the quotation marks as well.)
GREP example
A Finds all word characters enclosed in quotation marks B The character style is applied to the second grouping (the word) while the first and
third groupings (open and close quotes) are removed C
Character style specified
This example searches only for single words enclosed in quotation marks. If you want to search for phrases enclosed in
parentheses, add wildcard expressions, such as (\s*.*\w*\d*), which looks for spaces, characters, word characters, and
digits.
Example 2: Phone numbers
InDesign includes a number of search presets that you can choose from the Queries menu. For example, you can choose
the Phone Number Conversion query, which looks like this:
\(?(\d\d\d)\)?[-. ]?(\d\d\d)[-. ]?(\d\d\d\d)
132


Need help? Post your question in this forum.

Forumrules


Report abuse

Libble takes abuse of its services very seriously. We're committed to dealing with such abuse according to the laws in your country of residence. When you submit a report, we'll investigate it and take the appropriate action. We'll get back to you only if we require additional details or have more information to share.

Product:

For example, Anti-Semitic content, racist content, or material that could result in a violent physical act.

For example, a credit card number, a personal identification number, or an unlisted home address. Note that email addresses and full names are not considered private information.

Forumrules

To achieve meaningful questions, we apply the following rules:

Register

Register getting emails for Adobe InCopy CC - 2014 at:


You will receive an email to register for one or both of the options.


Get your user manual by e-mail

Enter your email address to receive the manual of Adobe InCopy CC - 2014 in the language / languages: English as an attachment in your email.

The manual is 9,27 mb in size.

 

You will receive the manual in your email within minutes. If you have not received an email, then probably have entered the wrong email address or your mailbox is too full. In addition, it may be that your ISP may have a maximum size for emails to receive.

Others manual(s) of Adobe InCopy CC - 2014

Adobe InCopy CC - 2014 User Manual - German - 315 pages

Adobe InCopy CC - 2014 User Manual - Dutch - 306 pages


The manual is sent by email. Check your email

If you have not received an email with the manual within fifteen minutes, it may be that you have a entered a wrong email address or that your ISP has set a maximum size to receive email that is smaller than the size of the manual.

The email address you have provided is not correct.

Please check the email address and correct it.

Your question is posted on this page

Would you like to receive an email when new answers and questions are posted? Please enter your email address.



Info