GREP help "apply style before the ' – ' and add return"

Hi,
I'm a newbie to GREP and not good at code so I need some help.
I think if I new the code to say " apply Heading Paragraph style to text before the ' – ' and add return.
Then it would work.
I'm OK with looping nested paragraph styles.
This is what I have currently got:
Nerang Community Respite Centre – 5578 1668
Provides a podiatry service.
www.nerangrespite.org.au
Ozcare Allied Health Program – 5569 6200 / Fax 5578 1331 
Physiotherapy, occupational therapy, speech pathology, podiatry, dietetics and social work.
www.ozcare.org.au
And this is how I need it formatted with styles applied
Nerang Community Respite Centre (Heading Paragraph Style)
5578 1668 (Phone Paragraph Style)
Provides a podiatry service. (Descrip Paragraph Style)
www.nerangrespite.org.au (URL Paragraph Style)
Ozcare Allied Health Program (Heading Paragraph Sty
5569 6200 / Fax 5578 1331  (Phone Paragraph Style)
Physiotherapy, occupational therapy, speech pathology, podiatry, dietetics and social work. (Descrip Paragraph Style)
www.ozcare.org.au (URL Paragraph Style)

Thanks for the help so far. It's working but I still to iron some things out.
Replacing the em dash with a paragraph space or return is straight forward. But getting the styles applied while doing that is not working.
Also I want to split the phone and fax separated by the '/" onto separate lines.
1. Not all the entries are the same see below example.
This is what I have currently got
^p = paragraph
Nerang Community Respite Centre – 5578 1668^p
Provides a podiatry service.^p
www.nerangrespite.org.au^p
^p
Ozcare Allied Health Program – 5569 6200 / Fax 5578 1331^p
Physiotherapy, occupational therapy, speech pathology, podiatry, dietetics and social work.
www.ozcare.org.au^p
Volunteering Gold Coast – 5591 8388^p
Cerebral Palsy League of Queensland – 5532 2088 / Fax 5591 7725^p
Provides community access to people with Cerebral Palsy and related disabilities.^p
And this is how I need it formatted with styles applied
Nerang Community Respite Centre (Heading Paragraph Style)
5578 1668 (Phone Paragraph Style)
Provides a podiatry service. (Descrip Paragraph Style)
www.nerangrespite.org.au (URL Paragraph Style)
Ozcare Allied Health Program (Heading Paragraph Style)
5569 6200 (Phone Paragraph Style)
Fax 5578 1331  (Fax Paragraph Style)
Physiotherapy, occupational therapy, speech pathology, podiatry, dietetics and social work. (Descrip Paragraph Style)
www.ozcare.org.au (URL Paragraph Style)
Volunteering Gold Coast (Heading Paragraph Style)
5591 8388 (Phone Paragraph Style)
Cerebral Palsy League of Queensland
5532 2088 (Phone Paragraph Style)
Fax 5591 7725 (Fax Paragraph Style)
Provides community access to people with Cerebral Palsy and related disabilities. (Descrip Paragraph Style)

Similar Messages

  • Must I have an account in Thunderbird before the "Tools" add-on manager activates?

    I'm trying to add Lightening to Thunderbird, the “Tools” add-on only takes me to Mozilla.
    Dell XPS M2010 computer
    System is Windows 7 Home Premium 64-bits.

    Good afternoon:
    I’ve attached a Thunderbird opening screen-shot.
    The installation instructions are:
    • In Thunderbird, open the extension manager using the Tools menu and clicking the Add-ons menu item.
    • Click the Install button in the lower left hand corner of the Add-ons box.
    • Locate and select the file you downloaded and click OK
    • Close and re-open Thunderbird to finish the installation.
    What am I misunderstanding?
    Respectfully,
    Pat Killmer

  • Urgent help On as2 error The remote server returned an error: (500) Internal Server Error.

    hi,
    im configured the as2 partner setup as per this http://msdn.microsoft.com/en-us/library/bb246129(BTS.20).aspx.
    but when im process file , then file try hit partner url goes dyhradated state,then failed. then i got below error.
    The remote server returned an error: (500) Internal Server Error.
    please any help..
    Thanks

    500 server error could be due to anyone of the following reasons:
    Party configuration is wrong. Party properties/configurations have  to be discussed upfront with the source/destination system and have to be in-line with
    them.
    Certificates have to be deployed in correct folders based on      certificate types like private/public/signed etc.
    Firewall (or network components) has to be opened accordingly for parties(systems) to interact. This change has to be done at the both the levels, source and destination.
    If you receive it through HTTPReceive.dll (may uses this for AS2), you have to check its configurations.
    Also 500 error, could occur even if your BizTalk artifacts has not been configured/deployed/enabled properly.
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • URGENT HELP:I want that the query should return in the same way

    I have a query
    select id from tableid where id in(350,241,251)
    This returns me in
    241,251,350
    I want that the query should return in the same way as specified in "in" clause.
    ie output should be in 350,241,251.
    I would really appreciate if anyone can help.

    You can achieve what you want like this:
    select id from tableid where id in (350,241,251)
    order by decode(id,350,1,241,2,251,3)in this example the decode explicitly defines the order you want to retrieve the records in.

  • Sorting paragraph, apply style then next and (maybe) placing images...

    Hi everybody,
    I have to set a layout on several pages for a magazine, arranging pictures along with some text related.
    I have a text file of this kind:
    Text a/1 (should apply Heading style)
    Text b/1 (should apply Bodytext style)
    Text a/2 (should apply Heading style)
    Text b/2 (should apply Bodytext style)
    + Photo
    Text a/3 (should apply Heading style)
    Text b/3 (should apply Bodytext style)
    + Photo
    Text a/1 (should apply Heading style)
    Text b/4 (should apply Bodytext style)
    etc...
    I wish to sort the paragraphs, keep note of those where an image is needed, strip them out into a new frame on the pasteboard with the picture reference and apply to the main text column the styles in order.
    Let me explain better with some pictures...
    a) b) c)
    d) final)
    Is it possible, in your opinion?
    Thanks,
    Guido

    Okay, I created a small file with the text
    title
    subtitle
    body
    body
    body
    and the title style applied to the first line. I then ran your new 
    script, which I had to fix up a little because it got slightly messed up
    in the translation to e-mail text. And now it works!
    Let's see if I can get it into AppleScript...
    First of all, hmm, it's interesting that the script text in the forum
    has
    var style_name = "h1"
    with "h1" red, while the e-mail version I received has
    var style_name = "title"
    Maybe you changed your message after posting it? No matter, I carry on
    and here's the result:
    tell application "Adobe InDesign CS4"
       tell document 1
         set theStyle to paragraph style "1.Bold Head 1"
         set applied paragraph style of paragraph 1 of selection to theStyle
         repeat with i from 2 to count of paragraphs of selection
           tell selection
             set applied paragraph style of paragraph i to ¬
               next style of applied paragraph style of paragraph (i - 1)
           end tell
         end repeat
       end tell
    end tell
    This works the same as yours with the "title" style, but let's go
    one more:
    tell application "Adobe InDesign CS4"
       tell document 1
         set theStyle to paragraph style "1.Bold Head 1"
         set applied paragraph style of paragraph 1 of selection to theStyle
         repeat with i from 2 to count of paragraphs of selection
           tell selection
             set applied paragraph style of paragraph i to ¬
               next style of applied paragraph style of paragraph (i - 1)
           end tell
         end repeat
       end tell
    end tell
    This works for any style, so I only need one script! Option-n is 
    available as a QuicKeys trigger and I use option for other paragraph 
    style assignments, so I'll assign it to that. Thanks!
    Roy

  • Help please! before the computer gets it:(

    sarakirkpatrick.co.uk
    This is a link to my webpage. I cannot get the images to
    'unbreak' nor can i get the pages to link reliably together...
    everything appears to be alright in dreamweaver but obviously
    isn't.
    Can anyone give me a few ideas? I've been going around and
    around in circles until i want to through the computer through the
    window as nothing i'm doing improves things...
    Apple please make a computer that i can converse with!

    Did you upload the images?
    Is this the correct link to one of them?
    http://www.users.madasafish.com/~sarakirkpatrick/headerleft.jpg
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "saralouise81" <[email protected]> wrote in
    message
    news:f2bvd4$o0k$[email protected]..
    >
    http://www.users.madasafish.com/~sarakirkpatrick/index.html
    >
    > This is a link to my webpage. I cannot get the images to
    'unbreak' nor can
    > i
    > get the pages to link reliably together... everything
    appears to be
    > alright in
    > dreamweaver but obviously isn't.
    >
    > Can anyone give me a few ideas? I've been going around
    and around in
    > circles
    > until i want to through the computer through the window
    as nothing i'm
    > doing
    > improves things...
    >
    > Apple please make a computer that i can converse with!
    >

  • Downloading a PDF from any site freezes before finishing and never returns.

    On many websites I have trouble downloading PDFs. It gets about 3/4 through then hangs and does not finish. Internet Explorer, my backup, has no problem. It may be my machine or our network but I don't know how.

    If you backup is bootable, boot into it, and see if the issue persists. As for the slowness, see:
    Mac Maintenance Quick Assist,
    Mac OS X speed FAQ,
    Speeding up Macs,
    Macintosh OS X Routine Maintenance
    Essential Mac Maintenance: Get set up,
    Essential Mac Maintenance: Rev up your routines,
    Maintaining OS X,
    Five Mac maintenance myths, and
    Myths of required versus not required maintenance for Mac OS X for information.

  • Grep Styles/Nested Styles from the end of the paragraph

    Hi -
    It appears that grep styles, and nested styles only allow you to apply styles from the beginning of the paragraph until the match.
    I'd like to be able to apply styles from the END of the paragraph going back.
    This would allow me to apply a non-breaking character style to the end of a paragraph to control "runts". You could make the last two words of a paragraph non breaking, or set a 15 character threshold.
    This wouldn't work for all cases, but I'm working with centered, non-justified text, so it should work fine. If the feature were there.
    I'm sure there are other things one could do with it as well.
    There's a good discussion, and a MANUAL work-around on
    http://pdsassoc.com/tipsCS/DeruntingParagraphs/index.html
    Tom

    I used your suggestion and reviewed the tutorial again.
    Sometimes a missing piece of info drives you nuts.
    Thanks again.
    My clients will love this enhancement.
    CS rocks.

  • Where to download the TDS add on version 4.8 or 4.9 for SAP B1 2005B PL 40

    Dear all,
    can any one please guide me where to download the latest version of TDS add on for SAP B1 version 2005B PL 40.
    I went to the link ftp.citixsys.net with the user name: national and password: national. But the link did not work.
    Please help me to download the TDS add on ASAP please....
    thanks and regards,
    Yeshwanth

    Hi,
    Go to Internet Explorer ---> Tools ---> Internet Options ---> Advanced Tab ---> Uncheck the following "*Use Passive FTP (for Firewall and DSL modem compatibility). After doing this, say Apply and retry.
    Hope this will help.
    Regards,
    Abhishek

  • Error while Installing the Java Add-In for an Existing ABAP System

    Hi all,
    I need help, i am Installing the Java Add-In for an Existing ABAP System
    SAPInst stops on the first installation step: "Central Services Instance (SCS) Java Add-In", the step is "Install common system files" on the following sub-steps:
    These are the last few lines on the sapinst.log.
    INFO 2009-05-21 12:35:12
    Execute step createAccounts of component |NW_Addin_SCS|ind|ind|ind|ind|0|0|NW_Users_Create_Do|ind|ind|ind|ind|3|0.
    INFO 2009-05-21 12:35:18
    Execute step setUserEnvironment of component |NW_Addin_SCS|ind|ind|ind|ind|0|0|NW_Users_Create_Do|ind|ind|ind|ind|3|0.
    INFO 2009-05-21 12:35:19
    Execute step InstallJDBCDriver of component |NW_Addin_SCS|ind|ind|ind|ind|0|0|NW_JDBCDriver_DB4|ind|ind|ind|ind|4|0.
    INFO 2009-05-21 12:35:19
    Creating directory V:\sapmnt\BIQ\jdbc.
    INFO 2009-05-21 12:35:19
    Creating directory V:\sapmnt\BIQ\jdbc\tbx.
    INFO 2009-05-21 12:35:21
    Copied file 'V:/QIBM/ProdData/HTTP/Public/jt400/lib/jt400.jar' to 'V:/sapmnt/BIQ/jdbc/tbx/jt400.jar'.
    INFO 2009-05-21 12:35:22
    Execute step updateNtPatchDlls of component |NW_Addin_SCS|ind|ind|ind|ind|0|0|NW_System|ind|ind|ind|ind|5|0.
    INFO 2009-05-21 12:35:23
    Execute step sCreateSystemOS4 of component |NW_Addin_SCS|ind|ind|ind|ind|0|0|NW_System|ind|ind|ind|ind|5|0.
    ERROR 2009-05-21 12:35:42
    MOS-02001  Call of command "CRTR3SYS SID(BIQ) GLOBALHOST(*LOCAL)" failed. Exception is "CPF0006".
    ERROR 2009-05-21 12:35:42
    MOS-02001  Call of command "CRTR3SYS SID(BIQ) GLOBALHOST(*LOCAL)" failed. Exception is "CPF0006".
    ERROR 2009-05-21 12:35:42
    FCO-00011  The step sCreateSystemOS4 with step key |NW_Addin_SCS|ind|ind|ind|ind|0|0|NW_System|ind|ind|ind|ind|5|0|sCreateSystemOS4 was executed with status ERROR .
    Thanks in advance for any help.
    Kiran Chebrolu

    Hi,
    Hope this note would solve your issue, please read carefully and validate with your issue
    Note 1032019 - Java Add-In: Error when you create the SCS instance
    below notes give your suffice information.
    Note 883948 - NW 7.00(2004s): Inst.Add.Java Usage Types/Software Units
    Note 1268493 - NW 7.01/BS 7: Inst.Add.Java Usage Types/Software Units
    Note 1025789 - RUNR3CMD generates CPF0006
    regards
    nag

  • Could you please tell me how to install "ThumbsDown" add on. I keep trying but it is greyed out. Note that I successfully added the "DownThemAll" add on.

    I greatly appreciate any help you can provide in getting the "ThumbsDown" add-on to work on my imac. I am using "thumbsdown-0.22.2-3.xpi" with Firefox 33.0. I would like to go to a site like "http://hqcelebrity.org/thumbnails.php?album=302" where thumbnails are shown, get the links to the high resolution pictures and batch download them all. ( I can batch download the thumbnail pictures with "DownThemAll" or with "Outwit"), but not the high resolution pictures.
    I tried installing "DownThemAll" but it seems to be greyed out in the Tools menu, and there is no icon at or near the location of the successfully installed "DownThemAll" icon. Your help and advice is greatly appreciated. Also, If you know an alternative to "ThumbsDown", please advise.
    Thanks kindly for your help,
    Sincerely,
    Bradley Katz

    Hello,
    The ThumbsDown add-on appears to have last been updated over a year ago. You may want to email the developer to ask that they update so that it is compatible with the latest version of Firefox. Please see the articles [[Unable to install add-ons or extensions]] and maybe [[Re-enable add-ons that were disabled when updating Firefox]].
    If you are sure that you want to install the add-on regardless of potential issues, you can install this extension:
    * https://addons.mozilla.org/en-US/firefox/addon/checkcompatibility/
    I am not entirely sure how it works, but it sounds like you may need to go to your '''about:config''' page to change the '''extensions.checkCompatibility''' preference to false once it is installed. You might then be able to enable your ThumbsDown extension.
    Note: you may want to back up your profile first, please see the article [[Back up and restore information in Firefox profiles]] for more information.
    In order to change your Firefox Configuration please do the following steps :
    # In the [[Location bar autocomplete|Location bar]], type '''about:config''' and press '''Enter'''. The about:config "''This might void your warranty!''" warning page may appear.
    # Click '''I'll be careful, I promise!''' to continue to the about:config page.

  • Can't Apply Styles

    I have a working Pages doc. There is a ton of info in a word doc I need to include. When I copy paste it into Pages, I then can not apply styles from the style drawer. What is that all about? Is there some way to be able to apply styles to info I paste? I dropped word because it displays ridiculous behavior like this. Is pages just as much of a useless time waster? Any help would be appreciated I'm extremely frustrated. Who has time for this kind of annoyance?!?!?!

    You have to select the text you want to use a style on.
    For more information on Styles download the Pages User Guide. It is downloadable from your Pages Help menu.

  • Unable to retreive the fault message returned by web service

    Hi,
    We are working on Proxy to SOAP synchronous scenario. The WSDL provided by the third party has 3 messages - 1. for request structure, 2. response structure and 3. Error message to track the exceptions, if any.  The interface working fine for positive test cases but we are facing issues when trying to capture the error message returned by the web service.
    We have configured the error message(provided in WSDL) as fault message in our Inbound interface. In the outbound interface, we have configured standard Fault message type provided by XI. we have mapped the two structure.
    Now when error is returned by the web service, we are able to see the blank response structure in the payload in MONI in XI. Also the SOAP Error Message structure is there in XI.
    But when we trying to retrieve the same in our proxy, it is giving the blank structure.
    Please help how to get the error message returned by the web service in proxy....
    Please help..
    Thanks in advance.

    >>>I am getting the error message as the fault message, in the response from the web service.
    >>>Now I want to forward the same message to SAP R/3 system. For this I have configured the standard fault message in the >>>outbound interface and have mapped the same with the web service error message. So if I am not wrong, the transformed >>>>structure according to the rules in message mapping should be sent to SAP R/3 system. But I am unable to see the result >>>>of this mapping in XI MONI. Neither is this passed to Client proxy.
    You are consuming the third party webservice. Third party webservice WSDL has request, response and fault message. if the third party application logic capture the exception and pass the response as fault mesg, then the above specified target fault mesg mapping with your Standard fault message mapping will be sent to sender or client proxy.
    Suggestions:
    Having fault message in WSDL does not mean that target system sends fault message during application exception. Check in the SXMB_MONI whether your response during exception is occuring in the fault message structure publised as WSDL. If not then doing mapping will not help. It gives only blank.
    If you notice response in fault message structure from third party in SXMB_MONI, then you need to check that at the client proxy side, are you handling/done coding for fault message methods similar to response strucutre for capturing data.
    Hope that helps.

  • [svn:fx-trunk] 9407: Reordering the if-statement in isMeasureFixed() exposed that hostFormat can be null when measure() is called if styles changed and measure is done before the next commitProperties .

    Revision: 9407
    Author:   [email protected]
    Date:     2009-08-19 15:11:34 -0700 (Wed, 19 Aug 2009)
    Log Message:
    Reordering the if-statement in isMeasureFixed() exposed that hostFormat can be null when measure() is called if styles changed and measure is done before the next commitProperties.  This states test exposed this.
    We should rethink if we want to clear hostFormat rather than have a hostFormatChanged flag.  If there is no hostFormat at measure then it has to be fixed because there is no line break format to check for auto-size.
    QE notes:
    Doc notes:
    Bugs: SDK-22779
    Reviewer: Gordon
    Tests run: checkintests
    Is noteworthy for integration: no
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22779
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/RichEditableText.as

    Oh my god, it is too long! You definitely check out types, casting and especially ODP.Net (it does everything for you)... etc. They can help you to simplify your code. I do not have enough time to copy paste it to Studio and understand and solve your issue, so I got title of your message as your main question.
    In Oracle, you can create an autonumber field by using sequences object. This is really useful when you need to create a unique number to act as a primary key.
    Basically you can create a sequence simply typing;
    CREATE SEQUENCE MY_SEQUENCE;
    now you have a sequence called "MY_SEQUENCE"... Then, I advice you select a number from sequence;
    select MY_SEQUENCE.nextval from dual;
    I said I advice actually kinda must, although it called sequence, I cannot be sequential. Do not even try to predict the value. You can be sure that it is unique number so you can use it.
    Then insert you record and use that number part of your primary key. I think that's it. Have fun.

  • Is there a way to apply all the font styles before importing the file

    Hi,
    I've some text as below in a text file that needs to be imported into InDesign.
    "Law of Civil Procedures"
    And in InDesign this is to be made bold. I want to know if there is a way to make it bold directly and then import it into InDesign, I'm asking this as I have approximately 200 pages that needed with all the font styles applied. This would be very helpful if i can first apply the font styles and then import it into InDesign.

    Hi Salah,
    Thanks for your Answer. I'm completely new to indesign, i'm basically an XSLT Developer. My question in brief is as below.
    We have to make books in InDesign, and the content we receive would be in XML Format and also an RTF file is given with same content, what we do currently is copy and paste the text in InDesign document and start formatting te content accordingly. But we are having huge volumes like more than 6000 pages and similarly we are having 8-12 vilumes, i want to know if we can get the styles directly in InDesign and start working on  them.
    For eg: we have the below content
    <para style="left"><num style="bold">1(1)</num>   <b>[Short title and commencement]</b></para>
    Here there should be a para created and the number should be bold. I'm really unable to understand how to do it. please help me with this. And also our vendors need the IDML file along with the PDF. please let me know how i can do this.
    Also please suggest me some good tutorials regarding this.
    Thanks.

Maybe you are looking for

  • I can't access my iTunes. Getting error message "The iTunes Library Extras.itdb file is on a locked disk or you don't have access to this file."

    Help. I am having problems trying to get to iTunes on my computer. I am getting an error message that says "The iTunes Library Extras.itdb file is on a locked disk or your don't have access to this file." Can anyone help me?

  • Characterstic to be added in Datasource

    WE ARE HAVING A REPORT FOR VENDOR OVER DUE ANALYSIS WHICH IS CREATED ON DATA TARGET 0FIAP_C30. THE USER REQUIRES BUSSINESS AREA  AS ONE OF THE CHARACTERSTIC IN THE REPORT THE CUBE HAS A DATASOURCE 0FI_AP_30 WHICH IS NOT HAVING THIS characterstic PLZ

  • How to use a C# dll with JNI

    After a ton of issues, I finally got this working properly. I've come across a lot of forum posts about the various problems and VERY few answers so I thought I would post my solution here. To do this, you need to create a managed C++ layer in betwee

  • Dynamic Title for Interactive Report?

    I have an interactive report where I am passing in interative report filters. This is great becase it allows me to reuse a single interactive report in different ways. However, one drawback I am running into is the report title. I'd really like to be

  • Import - error ORA-14519: Conflicting tablespace blocksizes

    Hi all, I have a user with only one partitioned table within tablespaces with 16k block size. Another tables use default tablespace with 8k block size. I've exported this user to dump file. when I try to import this dump file, I got the following err