How to create an InDesign Grep Expression to specific words

I have a long list of congratulations wishes all following a certain pattern. How can I create a grep style with the following sequence:
Congratulations to [name] upon.....
The first two words of the paragraph are always: Congratulations to
Followed by: name
Followed by: upon.... (then continues with the rest of info)
There's a general paragraph style to the paragraph, let's call that "body". A  character style, let's call "bold", should be applied to the first word, then skip the word "to", apply the "bold" character style again to the name (however long that may be), and stop at the word "upon". Keep in mind that the word "to" is mentioned again later on, so I wouldn't want to use an expression with all words "to", unless can be specified only the first instance.
I'm new to GREP, but have figured out so far that the following will give me the applied character style to the first word: ^Congratulations
Thanks a lot in advance to whoever can help me out here.

Fabulous guys! Thanks Eugene and Peter. It works great. All I did was add the "nested style > apply to first word" to get the first word bold. I greatly appreciate your assistance.
One more scenario that I need to get done, if you don't mind. Thanks.
This one is quite similar, but a bit different:
Congratulations to [name] son of [names] upon....
The first two words of the paragraph are always: Congratulations to
Followed by: name
Followed by: son of
Followed by: name
Followed by: upon.... (then continues with the rest of info)
Similar as before, but now I need both names [after the word "to" and after the words "son of"] to have the style applied, in addition to the word "Congratulations".
Thanks for your help.

Similar Messages

  • How to create an dialog "SAPoffice express info" in ABAP?

    Hi all,
    We would like to create a dialog "SAPoffice express info" to remind the relevant user that he must immediately check his new SAP mail in inbox.
    We see SAP system sometimes send a dialog "SAPoffice express inof" for this same purpose. For example:
    "Express document "Cannot be sent: Send Mail from ABAP Program." received from author "SAPUSER"".
    So we would like to create a dialog "SAPoffice express info" for our cas.
    If anyone know how to create a dialog "SAPoffice express info" in ABAP, please help us?
    Thanks a lot,
    Vinh vo

    Try with function module  SO_NEW_DOCUMENT_SEND_API1. using this you can send express message to sap office.
    RECEIVERS-REC_TYPE = 'B'
    RECEIVERS-REC_ID       = (user id)  " SAP user id for whom you want to send
    RECEIVERS-EXPRESS    'X'        

  • How to create a snapshot report on the specific destination?

    dear all
    How to create a snapshot report on the specific destination?
    thanks
    john

    user8779435 wrote:
    dear all
    How to create a snapshot report on the specific destination?
    thanks
    john
    Hi,
    when prompted just input the full path with filename for example
    Enter value for report_name: /tmp/awrreport.htmlHope this helps
    Cheers

  • How to create rtf template to view report in Word and Excel, with numeric f

    Hi,
    Please help me!
    How to create rtf template to view report in Word and Excel, with numeric formatted fields (like this 999 999 999,99 with spaces between numbers) and then end user be able to process those fields with Excel tools (sum, etc).
    Thank you.

    From what I have seen Excel can not handle 999 999 999.00. You can use 999999999.00 and then format it as you want in the xls bt you can not have values like 999 999 999.00 coming from publisher output and have functions on the values in Excel
    Tim

  • How to create shortcut for CC11 Expression

    Hey guys! How do you create a keyboard shortcut to get CC11 Expression in the hyperdraw window of the piano roll?
    Under keycommand I could only find Velocity.
    thanks!
    oh btw, I'm still running Logic 8

    OK, just go to the Hyper editor, go hyper/create hyper set.
    It'll probable create a volume CC7 hyper set, select the hyper set you've just created by clicking on the name in the hyper editor, a set of parameters will appear to the left, then just change the number to 11 as in this pic:

  • How to create in InDesign with "Helios Server" a flattened pdf file?

    Hi,
    anybody know about how to use Helios server to create flattened pdf file?
    some details:
    software: InDesign CS4
    Operating System: Macintosh

    I hope you meant it when you said any and all suggestions would be appreciated. This is kind of for listed bullets, but you seemm well versed that you could play with this to make it work.
    First, you want to set your text and apply some general bullets. You can make a new paragraph style if you’d like to set your indents for personal preference. Off to the side, place your graphic you want to use for the bullet.
    Next, select your bullet text and convert the bullets to text. Now it gets bouncy, but follow slowly and it may work for you.
    Copy one of the general Bullets to the pasteboard. Then, Find/Change, pasting the bullet text character in the Find what. Go back to your document and copy the logo or graphic to your clipboard. Make sure it is formatted to your bullet size and colors, etc...
    Go back to your open Find/Change dialog and select the Change to (special characters for replace) to clipboard contents, formatted. From there, you can select and tweak things such as text wrap.
    Just one FYI - When you try to select all in your text box, the graphics used for the bullets will NOT be selected in the links pallette.

  • How to create line indesign sdk?

    hi,
       I had created line but i cannot able to set length for this line,pls help me.
    here my code is,
    UIDRef lineRef=Utils<IPathUtils>()->CreateLineSpline
    (spreadLayerUIDRef,points,INewPageItemCmdData::kDefaultGraphicAttributes,kTrue,Transform:: InnerCoordinates());
    thanks,
    vijay.

    Hi,
    If the requirement is on a small scale and u have only a few no of users (To Restrict) and only a few forms, what i did was
    1.Get the curently logged in user.
    2.Check if he is a restricted user.
    3.Check if the form opened is a restricted form for the user.
    4.Then on the form load or on the ITEM (UID 1) make bubble event to FALSE and show msg that the  user is not supposed to make the changes.
    This is what i did as mine was limited to only some forms...:)
    Hope this helps u..
    Vasu Natari.

  • How to create a Domain user in a Specific OU using System Center 2012 R2 Orchestrator and Service Manager

    Dear All,
    I have a simple Runbook with the following details:
    Initialize Data: (First Name, Last Name, Login Name, Deparment Name) --> Create User: Name:(Domain), Common Name, Display Name, First, Last Name, SAM Account Name (From Initialize Data) --> Enable
    User: Distinguished Name --> Add User to Group: Group Distinguished Name, User Distinguished Name 
    Active Directory Management Pack in place and the Prerequisites Configurations are added Too (Configuration User Name, Configuration Password, Configuration DC, Configuration Default OU.
    The Runbook is Synched with Service Manager, Request Offering/Service Offering and published to the portal.
    When I filled the 4 required values (First Name, Last Name, Login Name, Deparment Name), the Runbook will kick off and the user is created in Active Directory.
    The user is placed in the Default OU which is predefined in AD Prerequisites Configurations in Orchestrator.
    I need to add another Required Value to my Request Offering (SR) called User Level Enum List (Low, Medium, High).
    I need to place the user in a Specific OU based on the Level entered from SSPortal, If the user is Low, then Create the user in this OU, if the user is Medium then create it in this OU, etc...
    How can I do this in Orchestrator? What I want to modify in my runbook to accomplish this task?
    Thank you,

    I AM TRYING TO USER/MAILBOX CREATION PROCESS, FOLLOWING IS THE BUSINESS REQUIREMENT
    GET THE USER FROM ERP SYSTEM (SQL)
    CREATE USER IN SPECIFIC OU
    ENABLE THE MAILBOX IN SPECIFIC DATABASE BASED UPON USER ROLE
    CREATE A USER IN NAVISION SYSTEM WHICH IS AGAIN JUST CREATING SQL LOGIN.
    PLEASE ADVISE ME THE PROCESS AND PROCEDURE ILLUSTRATION IF IT ALL POSSIBLE IN SINGLE RUNBOOK.
    I AM ABLE TO CREATE USER/MAILBOX BUT STRUGGLING TO CREATE IN SPECIFIC OU/MAILBOX DB AND SQL LOGIN.
    FARRUKH
    [email protected]
    Farrukh Anwar

  • HOW TO CREATE an excel column or chart on word office 2011*

    I can't create the right format on Excel Word 2011. on the  X axis i want to put years (1970-2050 but in 20 {1970; 1990; 2010}). Under the years, i want to put "census from 1970 until 2010. on the Y axis i want to put 10, 30, 50, upto 105). I have tried over and over, i can't do it. I need someone to teach me. I have looked on youtube, and the intruvtion it says, i do, but my excel sheet continues to do it wrong. I typed all the X axis on the left and the Y axis on the right, then i reversed it (x axis on the right, y axis on the left) both my colums ended up the same.
    HELP??? 

    KinsaKaUy? wrote:
    Yes, thats exactly what I wanted....but why not free :(If you want it free, then create a Classic Report instead and use this solution by Jari
    http://dbswh.webhop.net/dbswh/f?p=BLOG:READ:0::::ARTICLE:59900346164562
    http://dbswh.webhop.net/dbswh/f?p=BLOG:READ:0::::ARTICLE:303800346302715
    I got an Idea... Say I will divide the 100-column report into 10-column report and each has the 3 primary key columns on the right attached. so I will have 10 individual pages but sharing same Tab?
    How do I create a button "Next>" and "<Previous" so that the page will be displayed sequentially?You need to maintain the current page in session state and on "Next>" and "<Previous" action increment and decrement the value

  • How to create barcode in Smart Forms with MS Word as Editor?

    Hi,
    I created a character format for a barcode in a smart style.
    The problem is that I do not know how to assign it to the text in Smart Form because the Editor is MS Word and not the normal Editor.
    Any suggestion or idea.
    Thanks & best regards
    Viktoria

    Hi and thanks for the fast reply,
    I have created a smartstyle and also a characterformat for the barcode. This is not the problem.
    I call the layout via HRFORMS. The Form Builder for Smart Forms is called and the Editor for the text nodes is preset and is the MS Word editor. This cannot be changed. I tried different things also in the settings. The normal text editor cannot be called.
    I choose and enter the field that I want to convert into the barcode &wa_barcode&. I do not work with standard texts (SO10). The text field is a normal text node in Smart Forms. The character format that applies converts the number in the variable field into the barcode.
    In the MS word editor I have only formats that are in the office environment (arial, ...) I do not see the formats that I created in smartstyle also when I assign it in the output options of the text node.
    So maybe I have to work like this for now. Swich between HRFORMS and SMARTFORMS when working with barcodes. In the Smart Forms transaction it is the normal editor where I can see the paragraph/ character formats from smartstyle.
    Thanks and best regards
    Viktoria

  • How to create PDF from text file with specific layout?

    I wanted to create the pdf from text file in specific layout - Landscape orientation and JIS B3 Page size while at Adobe Acrobat Pro.
    In past, I could do a right click on a text file (desktop area) and select print to print out the document into .pdf BUT only if I set the Adobe PDF to Landscape and JIS B3 Page size BEFORE.  And I could only do 15 text documents at once.
    I wanted to see if I could do the create the pdf from text file with specific layout in Adobe Acrobat without having to go to Control Panel to preset the Adobe PDF to specific layout at every time.   I would have to set Adobe PDF back to normal layout after I'm done with these pdf print outs.  I do lots of pdfs in normal layout.  Sometimes I would forget to do that.
    So, How do I do that?

    No such luck.  It would output the contents in letter size even in JIS B3 Page layout at MS word. 
    Is there a script or action where I could set the orientation and page size before creating PDF on these text files?

  • How to create a date object with a specific time?

    How can I create a date with today's date but with a specific time, say: 20:00:00?
    Thanks in advance.

    Don't forget about those pesky milliseconds!I'd have gotten away with it too.. if it hadn't been
    for that pesky BigDaddyLoveHandles.I'm in top form today. On the drive in to work I managed to
    push two scooter riders off the road and gave the finger to
    a Prius owner.

  • How to create a custom listview with a specific listview item style?

    Hi everybody, I am trying to implement a custom image gallery. It has a very distinct design though, It supports drag and drop reordering. Each item has a button on the left and a thumbnail. The drag and drop should happen only when we drag the thumbnail
    and drop on the + buttons. I tried a lot of ways but none of them seem to work properly. The design of the list view is as the image below. 
    the first item in the list view looks like this. a button and a thumbnail and the last item looks the same but instead of a thumbnail it has an icon. When the add button is clicked a open file dialog appears and we can insert a thumbnail when the add button
    which is on the left and right of the thumbnail is clicked. When the add button at the end is clicked it adds a thumbnail at the end. How do i implement something like this ? Any help is much appreciated. 
    This is the code that i have for the list view item container.
    <Style TargetType="ListViewItem" x:Key="ContainerStyle" >
    <Setter Property="KeyboardNavigation.IsTabStop" Value="False"/>
    <Setter Property="Template">
    <Setter.Value>
    <ControlTemplate TargetType="{x:Type ListViewItem}">
    <StackPanel Orientation="Horizontal">
    <Button x:Name="AddButton"
    Style="{StaticResource SeparatorButtonStyle}"
    Tag="{TemplateBinding Tag}" AllowDrop="True"
    HorizontalAlignment="Left"
    Click="AddBtn_Clicked" VerticalAlignment="Center" Margin="10,0,10,0"/>
    <Border x:Name="Bd" BorderBrush="Transparent" BorderThickness="5" Background="{TemplateBinding Background}" Margin="10,10,10,15" SnapsToDevicePixels="true">
    <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
    </Border>
    </StackPanel>
    <ControlTemplate.Triggers>
    <Trigger Property="IsSelected" Value="true">
    <Setter Property="Background" TargetName="Bd" Value="#098ae4" />
    </Trigger>
    <Trigger Property="IsEnabled" Value="false">
    <Setter Property="Background" TargetName="Bd" Value="#098ae4" />
    </Trigger>
    </ControlTemplate.Triggers>
    </ControlTemplate>
    </Setter.Value>
    </Setter>
    <Setter Property="IsSelected" Value="False" />
    </Style>
    The datatemplate looks like this..
    <DataTemplate DataType="{x:Type local:ThumbData}">
    <Border BorderThickness="3,3,3,3" x:Name="thumbnailborder" PreviewMouseMove="MouseOverImage" MouseLeave="thumbnailborder_MouseLeave_1" AllowDrop="True" Tag="{Binding ThumbNumber}" DataContext="{Binding}" Width="150" PreviewMouseDown="Page_PreviewMouseDown" PreviewStylusDown="Page_PreviewStylusDown">
    <StackPanel x:Name="border" Background="LightGray">
    <Border>
    <Grid>
    <Border x:Name="transpBk" Height="{Binding ActualHeight, ElementName=thumbImage}" Width="{Binding ActualWidth, ElementName=thumbImage}" VerticalAlignment="Center" HorizontalAlignment="Center" />
    <Image x:Name="thumbImage" Source="{Binding ImageSource}" VerticalAlignment="Center" HorizontalAlignment="Center" Stretch="Uniform" Width="150" Height="100" />
    </Grid>
    </Border>
    <Border Width="150" Height="20" x:Name="ThumbnailNumberPanel">
    <Border Background="{Binding PColor}" Opacity="0.8" Width="150" HorizontalAlignment="Center" Height="20">
    <TextBlock Text="{Binding ThumbNumber}" TextWrapping="NoWrap" TextTrimming="WordEllipsis" VerticalAlignment="Center"
    HorizontalAlignment="Center" FontFamily="Segoe UI" Foreground="White" FontSize="11" TextAlignment="Center"
    Width="150" Margin="0" PreviewMouseDown="Page_PreviewMouseDown" PreviewStylusDown="Page_PreviewStylusDown"/>
    </Border>
    </Border>
    </StackPanel>
    </Border>
    </DataTemplate>
    Thanks and Regards, JohnnyWalker.

    Hello Johnny,
    Can you describe what do you mean by say this:
    "we can insert a thumbnail and dropped on to the add button which is on the left and right of the thumbnail"
    And also could you describe in which part you have problem?
    If you don't know how to add a image to your listviewitem, please try check VisualTreeHelper Class, use it to the specific element you need and then add the element, like a image to it.
    See a code sample about it:http://rachel53461.wordpress.com/2011/10/09/navigating-wpfs-visual-tree/
    And check for details from MSDN:http://msdn.microsoft.com/en-us/library/system.windows.media.visualtreehelper(v=vs.110).aspx
    Best regards,
    Barry
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.
    Hi Barry, Sorry that was a typo. What i meant to say was we can insert a new thumbnail when the + button which are on either side of the thumbnail is clicked.
    There are two problems that i am facing.
    How do i do drag and drop by dropping on to the + buttons? Drag and drop should not work when one thumbnail is dropped on to the other. Multiple thumbnails can be selected and dragged and dropped to reorder. The + buttons should not be dragged nor
    selected.
     Dragging the last "add thumbnail" should not be possible. It has to be there always at the end. And user should not be able to select, reorder or delete it.
    I have a class which holds the thumbnail and i am setting the observable collection as the item source of the list view. i do not have any problem in showing the thumbnails.
    Thanks and Regards, JohnnyWalker.

  • How to create a form by using an existing Word document.

    Just installed Adobe XI Pro.  Now trying to create a form from an existing word file.  After choosing my file I cannot click on the button (Current document).  Error message appears:  An unexpected error occurred.  PDFMaker was unable to produce the Adobe PDF.

    Try starting with the file opened in Word and creating the PDF from there. You can either use PDF Maker (Acrobat toolbar in Word) or print to the PDF printer. If that works, you can open the PDF in Acrobat and ruun the form wizard to automatically add the fields, or add them manually.

  • Grep expression for specific search within Brackets

    Hello,
    I did a search and found many topics for searching within brackets, but wasn't able to find anything to search for specific characters/quotation within brackets.
    Note: The forum image uploader wasn't working for me so I embedded it to the topic. Hopefully it shows up for you. (http://cl.ly/1H42302P2x3c1Q3P2a42)
    For the Brackets and words within, i use:     (\[).+?(\])
    and have it them to a different font.
    For my project i need the quotations to be a different color and nothing else.
    These are the ones i'm trying to add to an expression:      '|"|;|,
    Any help is very much appreciated. I've been trying many arrangements with no luck. Thanks!

    It's not possible to search for your punctuation inside parentheses only. (FYI, that needs a positive lookbehind of variable length, and that's not possible.)
    But the hint to get it done is right there:
    function(){return A.apply(null,[this].concat($A(arguments)))}
    For the Brackets and words within, i use:     (\[).+?(\])
    and have it them to a different font.
    Simply search for your set
    only in that particular font.

Maybe you are looking for