Style grep text between commas of targeting

Hello InDesigners!

I have a list of names in a single paragraph, separated by a comma, like this...

John Doe, Jane Smith, Sally sell

I want to target each name and first name with one style of character No Break nested in a paragraph style.

I found this ' find between ' grep and article useful code here:

(?<=\().*? (?=\))

http://InDesignSecrets.com/findbetween-a-useful-grep-string.php

But InDesign / Grep does not appear to be a symbol for spaces and I don't know how to escape the space or exactly how I needed to work with the "," (comma and space).

Any ideas?

Thank you!

Rick

I described you, what you need to do. Your GREP is complicated, not looking for 2 commas. There are some unknown circumstances again, because some of the names may contain points, some other diacritc sign that you do not now include.

1 set the style of entire para without pause. It is allowed when the text disappears.

2. have a developed character style to break:

Take care that you will not accidentally the character style to the entire image or future text!

3. now redefine your paragraph Style in the GREP section. Insert \x{002C}\s to apply the character Style to a comma and a space, you can use a normal space in your case too. But one, followed by a space would have done the same thing, comma and unicode 002C are identical, as you see here. When you click on 'Preview', you will see how the text becomes visible:

Even if the columns are closer, you see the correct reflow of the names:

Tags: InDesign

Similar Questions

  • Search find and style of text between HTML tags

    Here is an example in indesign. Ive been working with Word, Pages, Openoffice, and it's hard for everyone to submit documents style correctly. We found that the easiest way is to use HTML tags to indicate what gets the title beyond the standard paragraph style.

    < i > < /i > italic

    < b > "BOLD" < /b >

    code < code > < code >

    Code in bold < CODE > < CODE >

    Email or Adresse_web < url > < / url >

    I would like to search for ' < url > any character < / url > ' and add a character style to the text between the tags. Its ok if the style is applied to the tags, I can just "< url >" search and replace with white spaces.

    The question im hits which is a search for "< url >. "< / url >" returns 0 results. The '. ' is any character from the drop-down list of search next to the text field.

    I looked into GREP, but I've not had much luck find an answer CLAIRE using GREP.

    Right now what I'm doing is "< url >" search add a character style for the text between the tag found "url" and then when I'm done doing all this, do a quick find and replace "< URL >" and "< / url >. I was wondering if there was a faster way... Any help is very appreciated.

    Ah - Peter S. beat me to it! You add a question mark ()(.+) ()(.+?) (tag in the document at the last. (Parentheses are not required - in fact, the parentheses force InDesign in creating unnecessary references, making it less effective GREP. Although in short documents, you won't notice that.

    Peter K.

  • GREP text between the words selection

    I want to select all of the text between [2a] and [F2A].

    The problem is that there are n paragraph between the 2 elements as in the following example:

    [2A]

    Lorem ipsum dolor sit amet.

    [ME] Lorem ipsum dolor sit amet.

    [KING] Lorem ipsum dolor sit amet.

    [F2A]

    I tried:

    (\[2A\]).+(\[F2A\])

    But there may be more than one error in my code. Any suggestion?

    Put "(?s)" at the beginning of your GREP for force "single-line" mode. "

    By default, GREP only works on a single paragraph, and so it stops when it encounters a hard return to the research. Simple line of setting mode allows to treat the hard return as any regular character.

    You can change the "." + "in the middle of your expression to. + ? ", to match the shortest chain possible. Default value is GREP catch as much as possible, so if you have more than once these codes in a text, it will happily select everything from the first to the last instance.

  • How the style of text that is placed between the space characters

    Via a paragraph style sheet, I need apply character styles to text that is enclosed in the white spaces.

    For example:

    The cat < < thinspace > > Sam < < thinspace > > on < < enspace > > < < enspace > > Carpet

    In the light of the foregoing, "Sat" would have a character style while "Mat" will be another.

    What is the best way to achieve this?

    I know that Indesign has GREP styles, but that doesn't seem to work with the text placed between the space characters.

    The only reason why I am using space characters is also because they are invisible when printing.

    Is there another method for the text wrapping to tag as needing to be marked with a style?

    Thank you!

    Peter Spier says:

    Where is Jongware when we need him?

    By working?

    I don't find anything wrong with the styles available in CS6, it is defined locally or in a style. Maybe there was an invisible error in the original style of GREP - say, something like a space at the end.

    I agree with Peter, however, you might want to try other codes. Because

    The only reason why I am using space characters is also because they are invisible when printing.

    This is not the case... quite true. Of course, you don't see any markings on paper (or screen), but you pouvez see space between words is smaller and more!

    But do not limit yourself with "invisible" codes You can use this trick to emulate type HTML styling: http://indesignsecrets.com/using-grep-styles-to-format-html-code-in-indesign.php

    A big advantage is that with a click of a button, you can still get the visible 'invisible' codes. Just disable the GREP style that masks the codes or change its character style.

  • Use GREP text style - help!

    I'm trying to learn the GREP style text... and hitting my head on a brick wall!

    The text is:

    Topic | Institution | Date

    Lorem ipsum dolor...

    I want to format the text before the line of the first vertical (|) as "BOLD", the text between the first and second vertical lines in italics and a third style to the text between the second vertical line and carriage return. The rest of the text (Lorem...) will be the normal paragraph style. Seems simple enough...

    I'm uncomfortable with the creation of character styles relevant for formatting I need, I can't just not work how to select the corresponding text. I can't figure out yet how to express 'select the text before' character as ' |'.

    Can someone help me write the GREP expression, or point me in the direction of some examples that contain similar phrases? I found that a few cheatsheets online (below), but none contain the phrase "select text before".

    http://www.night-Ray.com/regex.PDF

    http://www.ericagamet.com/wp-content/uploads/2011/11/Erica-Gamets-grep-cheat-sheet.PDF

    Joel Cherney wrote:

    Everything is build on grep, everything I have to do - just click on style of para.

    AHA! It is not a GREP query, but a collection of GREP styles. And you do not write em! Busted!

    No, I wrote them... but yes, it's a collection of styles. A bit like this:

    really not a big piece of art, but it works and can be used as a start point.its to everyone to decide what to use. What and when. Frankly, I almost forgot the nested styles even exist...

  • IDCS5/MAC - Style GREP in capital letters of a letter after a hyphen between the words

    G ' Day here.

    I'm trying to create a GREP style for uppercase letter after a hyphen between the words, specifically with a word beginning with a capital and after a dash do not for example Lorem-ipsum = Lorem -Ipsum

    The full story, it's that there is an indesign batch file used over and over again that family names that are in a large database of data - merge. Data arrives in capital letters and our mail barcoding software allows us to title case some fields, but the behavior of title case has the following results:

    * = Mcleod McLeod

    * = Agostino Agostino

    * Smith-Bunting = Smith-Bunting

    I was able to solve the = problem with the following GREP style Mcleod McLeod:

    (?<=Mc)\l
    

    and then apply a character style that is nothing more than all caps.

    Similarly, I was able to solve the problem = D'Agostino of Agostino:

    (?<=\u')\l
    

    and once more apply style all uppercase to the letter assigned. This also solves the problem of O 'leary to o' Leary.

    However, when I try these GREPs to enter style Bunting-Smith questions:

    (?<=\u\l+?-)\l     or   (?<=\u\l{2,}-)\l
    

    the search does not work, nor will it work with regular replacement of find/change GREP... and yet the expression \u\l+?-\l will find the block I'm after.

    I could use the search

    (?<=\l-)\l
    

    and is that Smit untingh-b= Smith-Bunting... but there is also co-ontervenir = co-Ontervenir (find two words with a hyphen but begins with a lowercase letter).

    That's fine if the paragraph style is applied to the line in the address block containing the name of the client, but if the name is mentioned in a text block, then that block of text must have the paragraph with the GREP style applied style and dashes between words in that para is in the same way as the name.

    Yes, it is possible to go into excel and use the PROPER (cell affected) = and fix fields Smith-Bunting, but I am trying to create a solution that only works in InDesign so that other operators in the office (who are not familiar with excel) can simply open the file of commands and dump in the database to txt generated by the mail bar coding software.

    There are other names that-case of barcoding mail title fault upward, i.e.

    * = Macleod MacLeod

    * van der Graaf = Van Der Graaf

    * van Diemen = Van Diemen

    but a GREP make MacLeod of Macleod can clog Mack, Mackie or Macy become MacK, MacKie or MacY.

    I also know that a GREP for the van der or van will not work as the style will force letters only to be all uppercase, not uppercase to lower...

    In the end...

    does anyone know how to style GREP (not a find/change GREP) a fix for Xxxxx-xxxxx = Xxxxx-Xxxxx?

    Colly

    Colecandoo.

    I agree with Haakenlid on his reviews of Dirty-workaround - in my opinion, the data should be entered in the way which it oguht, not altered by some magical GREP styles - but then again, I can also sympathize with your POV re: a fire-and-forget solution even your stupidest operator can not miss.

    Oh the rigors of life.

    If you are totally, absolutely certain you want to GREP for that, use this:

    b define a character to capitals on the chain style

    \b\u\l+\-\l

    -This will change as if by magic "the Honourable lieutenant Sir John Forsythe Blunt-object" in "BLUNT object".

    (b) then replace (!) the first half with another style of character that removes the attribute of capitals (!):

    \b\u\l+-(?=\l)

    Notice how this expression is exactly the same as the one above, except for the latest code - the next tiny need also be captured, but now, by using an advanced search for its formatting will be not affected.

    This command removes the substitution all uppercase the first halve, change 'BLUNT-object' 'Blunt-object '.

    Many side effects, I'm sure. Maybe it 's safer to teach your operators to run a single script.

  • An involuntary repetition of Style GREP

    I use the GREP style

    ^.+?\. ( ? = \s\u)

    to identify the text at the beginning of a paragraph, then apply a character specific to this text style. The formatting of GREP should occur only once at the beginning of the InDesign copy block. Where I am running into trouble is when I change the text using a hard or soft return, the GREP style repeats, which is not what I want to happen. I need to be able to return without the repetition of the GREP style itelf. Here's a screenshot for example.

    Highlight the GREP style in the paragraph and then Style Editor by clicking the dropdown to the right of the code will display a menu that includes options for ordering repeat, as "Zero or once", but even if that is selected, the style GREP is repeated.

    Is there a way to apply the style just GREP once by InDesign story, so that any subsequent conditional or unconditional return do not call style GREP a second time?

    kmc27 wrote:

    I was using a regular nested style "the first sentence" option, but it was not sufficient in cases where the sentence contained a description containing two periods such que.5 carat t.w.. That's why I switched to a GREP style.

    I understand the style GREP repeats when is used a hard return, but why is it repeated when a soft return is used. The return is not the creation of a new paragraph.

    We could call it "interpretation". Is a soft return creates "new paragraph"? Well, Yes and no. Soft returns are abused to insert line breaks in the text running, and I'm sure that's not the intended use. Something like a first line indent is not achieved with a soft line break.

    I think the explanation is simple, however. GREP, in general, is not aware of the difference between a hard return (0x0D) and a soft return (0x0A). This is expected behavior, because different OS platforms save their 'plain text' with different line endings, and original function of GREP was looking in plain text only. It is imaginable the behavior you see is a side effect of the programmers of Adobe not realizing this (they has no real 'write' GREP for InDesign code, they have downloaded from somewhere).

    That said: one of the most special things of a GREP style which needs to be "completely intentional" is that they work only inside a whole paragraph. Therefore, you can not do something like 'test the previous paragraph for x' - ID refuses riding on the mandatory return. But: the paragraph to which it is applied is an InDesign paragraph, hard back in the mandatory return, and this mechanism does not take account of GREP 'we include the return. " Thus, strangely, strangely and oddly enough, it does not work:

    ^(?

    as "before" the beginning of a paragraph InDesign never can be a soft return (there always 'nothing' before it), but "before" the beginning of a paragraph GREP, there's something--a return!

  • Send texts between iPhones

    I know, I can manually for text an iPhone with my iPhone, (no iMessage) or set it to text only, no iMessage, but is it possible to automatically send as sms when I'm on an edge network, or only as iMessage when I'm on wifi? Also why all the contacts have a message thread separate their phone number and email? (it is only of texts between two iPhones, not texting-iPhones)

    No, you cannot choose which message protocol to use based on the quality/type of connection you have. You can leave your comments at Apple to suggest that they implement this function: http://apple.com/feedback/iphone.html.

    Messages should not create threads separated for each of contact addresses. As long as you have all the addresses listed for the person in the Contacts application, they must be grouped.

  • I have a pdf form that has 4 columns, with each column having 28 check boxes and text between. I did so he goes by column, but when I do anything for a checkbox it takes it out of line. How can I keep that from happening?

    I have a pdf form that has 4 columns, with each column having 28 check boxes and text between. I did so he goes by column, but when I do anything for a checkbox it takes it out of line. How can I keep that from happening?

    You talk about the tab order? If Yes, go to Edit - Preferences - forms and make sure the box "Automatically adjust tab order when changing fields" is NOT checked.

  • regexp_substr: retrieve a block of text between delimiters

    Hello

    regexp_substr is very powerful, but not so easy to understand. I'll try to do my best, but I need your help.

    My question is this: I have a multiline text, stored in a database field. The text is structured as a "windows.ini" file: there are sections in square brackets and the lines of text in the section.

    I want to retrieve all of the text in a given section, and I think it's possible using regexp_substr.

    Here is the text of the field (in bold the part I want back):

    ---

    [ARTICLE 1]

    AAA = 123

    BBB = 456

    CCC = 789

    [ARTICLE 2]

    DDD = 987

    EEE = 654

    ---

    In other words, is there a way to retrieve the text between [ARTICLE 1] and [ARTICLE 2]?

    Thank you in advance.

    Concerning

    Select

    regexp_substr (txt, ' [de] [^] +', 1, level * 2) s

    t

    connect by level<= regexp_count(txt,="">

  • WTH?  I have a gap in the text that I can't fill.  There is no hidden formatting that I can find, and I apply a paragraph style to text.

    WTH?  I have a gap in the text that I can't fill.  There is no hidden formatting that I can find, and I apply a paragraph style to text.

    I'm not well-versed in indesign, but what I've discovered, is that the box around the page number on the master was wrapping text, which was originally my text to break around her at the center bottom of the pages.  Problem solved, and amiellemiel is right.

  • Style of text that can be changed to auto-update of any instance of this class in the same project EA.

    In programs like Dreamweaver and Muse, we have a range of properties/tool to define and styles of text and stored to be reused and editable - so if you say change all the titles under the project in a different typeface, color, size etc. you can just change the settings in the css Panel (or equivalent). How do you do that on board? It must be possible, right?

    I use Edge animate 2015.

    Thanks, Shaun

    Hello

    You get by using code. You can browse your composition.

    Code tested with edge 6.0.0

    SYM.$("p") ==> returns paragraphs. If a collection.

    SYM.$("p"). each () ==> browse each item.

    SYM.$("p"). each (function(index,item) {}

    Console.log (sym. $(item). ) CSS('font-family')) ==> returns the family of police for each item

    } )

    Therefore, you can create a conditional statement.

    SYM.$("p"). each (function(index,item) {}

    If (sym. $(item). ) CSS('font-family') == "sought fonts") {sym. $(item). } {CSS({... new font...})} ;

    } )

    Note: jQuery is not necessary.

  • The most effective way to import text ('tag' or 'style' pre-text?)

    Once again, my apologies to all the good people here who are so useful that I shows ignorance about the FrameMaker product.

    Always in collaboration with FrameMaker 9, still working on an old background of PageMaker (and print background before that).

    I remember being able to import the tag pre or pre style plain text in PageMaker.  For example, I could put in something the equivalent of a bunch of text that looks like this:

    [body] Lorem ipsum... bibbibity bobbity dooo...

    [subtitle] Presentations to the delicious taste

    [body] More fun text

    And then import this text in PageMaker is pick up these defined styles and make the material much faster import process.

    Is there a way to do the same to that of FrameMaker 9?

    Please feel free to direct me to materials that are in the line/manuals help, but please note that I am following in the paths of a person who used to work and find the manuals and other materials for the software I have * absolutely * know was purchased (I was a systems administrator and know the staff in charge of) (, so I know it was bought and installed using a systems administrator no user has rights to install on their system of my work here) can be which is not simple.

    Thanks in advance

    Oh, a thought here suite.  If something like the above is possible, is it also possible to do the same with materials in the tables?  In other words, can I pre-define the components of a table and see FrameMaker 9 import these materials and create a table for me "automatically"?

    Once again, thank you

    Barry,

    You can use a text editor such as Notepad and the markup of the content in XML format. If this tag is compatible with your ESD, then you can import it into your FrameMaker document for copy or reference and he enrolled in full.

    Tables are a bit more complicated, because you need also some read/write rules to tell FrameMaker which part of the marked-up content is an object table. You can find the details in "DEVELOPING STRUCTURED APPLICATIONS WITHvADOBE® FRAMEMAKER® 9 ' which is supplied with the FrameMaker application.

    Good luck

    Van

  • Select the text between 2 bookmarks with Javascript

    I'm trying to select text between 2 bookmarks. Now, I have this:

    var doc = app.activeDocument;

    var BB = doc.bookmarks.firstItem ();
    var be = bb.bookmarks.firstItem ();

    bb.showBookmark ();
    var en = app.selection [0];

    be.showBookmark ();
    var to = app.selection [0];

    bb.showBookmark ();

    App.Select (app.selection [0].parentStory.insertionPoints.itemByRange (fr.index, to.index));

    This code does not work if bookmarks are on different pages.

    Any suspicion that must go in the call to app.select ()?

    What is the best way of art. to understand the DOM who uses app.select ()?

    This code does not work if bookmarks are on different pages.

    But it did, perfectly. I suspect that there is another problem.

    What is the best way of art. to understand the DOM who uses app.select ()?

    App.Select works as manually select the text. I think the underlying problem is that the text is not just "on pages", which is * not * a problem, but it's actually separate two stories. A script can only select contiguous text of the same story (a unique set of images of text block), just like you cannot select all the text in two unconnected blocks of text.

  • Is it possible to center the text between any set of verticle lines displayed by the grid?

    I try to be attached to the specific tasks on this background that I use, I turned the grid text. I put the text at specific locations a lot. So it would be a lot easier and faster if I could just automatically center the text between the lines of the grid, rather that manually fiddling with it.

    well commented in this case might get you where you want to go.

    But if you either point frame type or text, it is quite easy to do.

    Turn on snap them to grid from the view menu

    Draw a rectangle to one of the lines of the grid to another (with no fill and no optionsl race)

    then place the text on the rectangle, turn off align it on the grid.

    in the attribute align select on align by object key select the text and the rectangle, click on (with selection) on the rectangle to make the object key (do not hold down the SHIFT key).

    Then in the Align Panel choose horizontal or vertical alignment icon.

    Vertically align the text means that a block of text has close text and even at that it is often subjective if you may need to reposition for a Visual
    accepted balance and sometimes it's true Center horizontal alignment according to the size and utilization of the text.

    Oh Yes after you Center the text you can delete the rectangle.

Maybe you are looking for

  • Satellite A505-S6025: Win 7 64 bit - driver ACPI\TOS1901 fails

    I have this problem and my phone freeze.If anyone knows what it is and how I can solve this problem. Thank you!!! failed to load the ACPI\TOS1901\2 device driver\driver\fwlnk & daba3ff & 2

  • Missing PID

    Windows 2003 Server Having a process using PID 5840 and he was hanged for 17 hours.  In the Manager of tasks (with tasks of all selected users), the PID does not show. I tried "Tasklist /FI"PID eq 5840"/FO Table' and the answer was"no tasks are runni

  • ink or toner

    The HP officejet pro 8600 uses ink or toner?

  • Windows 7 Pro downgrade to home edition

    I really wish can I downgrad my Windows 7 Pro to the edition of hospitality, every step of the way, it gives me headaches with Access Denied, so much time and so frustrating, is that this conversion is possible anyway? Considering the hours I need to

  • problem with the DVD drive when I installed win 7

    When I installed win 7, my dvd player appears, but when I eject it then I have at the time he works in it for a minetus of serval he disappeared again