Grep to replace only part of the found text

I'm using ^.+~> to search the begging of a paragraph up to an EN space, but is it possible with GREP to format just PART of the string found?
There are roman numerals that precede a period and an EN space and I want to apply formatting to just the roman numerals, leaving the period and EN space alone.
I did found one post that mentions using "some" but I'm not familiar enough with GREP to know how it works.
Can anyone commend a good source for GREP coding?
Thanks,
Ken

Try this:
^(.+)(?=\.~>)
I just changed your original code to use the period and en-space as a positive lookahead -- it'll only find characters at the beginning of the line if they're followed by a period and an en-space, but will not include them as part of the found text.
If these items all have the same paragraph style applied to them and that style isn't used anywhere that you wouldn't want the formatting, I'd also consider setting this up as a GREP style. You could also do it as a nested style applying your character style up to (.~>). (Don't include the parantheses - I was just trying to make it clear what the expression to use is.) 
Hope that helps.

Similar Messages

  • Display only part of the STRING field, but search ALL field

    Hi all,
    I have a field VARCHAR2(4000) that holds a lot of text.
    When I make a report in APEX, it shows in each row, ALL text, so the report is very "ugly".
    I want to limit the display of that column for only the first 60 characters.
    I tried to use the SUBSTR function, that worked, but the search option will search for the text only in that 60 lenght characters, and will now search in the rest (not displayed) part of the field.
    Is there a way to do this full search and display only part of the field?
    Thanks

    You can have the 'substring' column displayed to the user, but have another column which shows the full text lets say it has an ALIAS of "*SEARCH_LARGE_TEXT*" in the report definition(and is among the displayed columns).
    You can hide the large text column(SEARCH_LARGE_TEXT) using JS as
    $('th[id="SEARCH_LARGE_TEXT"],TD[headers^="SEARCH_LARGE_TEXT"]').hide()
    Note: ^= syntax used to match data column even when break formatting used
    You can make sure that the column stays hidden even after an IR filter or refresh by binding it to the refresh event of the IR by
    $('#apexir_WORKSHEET_REGION').bind('apexafterrefresh', function(){ 
      $('th[id="SEARCH_LARGE_TEXT"],TD[headers^="SEARCH_LARGE_TEXT"]').hide()
    change the string "SEARCH_LARGE_TEXT" with your column's alias
    Hope it helps

  • Exporting only part of the Sequence

    I do not have any in and out points on my sequence, but when I export, only part of the sequence exports. I have chosen numerous encoding presets, tried placing in and out points at the beginning and end, but it still does not work.

    I've tried exporting through DV NTSC and DVCPRO720p60.
    Say if I had a 10 minute sequence, then it'd only export 3/4th of it.

  • Syncing only part of the playlists

    Hi,
    Is it possible to sync only part of the playlists? It seems that if I remove some of the songs from my hard drives, iTunes removes the files from my iPod as well. For example, in my iPod I have a playlist called ABC that contains a song DEF and GHI. If my hard drive no longer has these songs and the playlist's removed in PLAYLISTS, playlist ABC and the songs in my iPod will be deleted after I do a sync. How do I keep the songs in my iPod when they're no longer in my hard drive?
    Thanks,
    Sun

    If I select just one of the many playlists I want to update, it seems to update just that playlist and remove everything else.
    iTunes won't remove anything from the iPod if you are Manually managing your music.
    To remove songs from the iPod, YOU have to select the songs and delete them yourself.
    Just like if you want any songs on the iPod, YOU have to select them and drag them to the iPod.
    So it doesn't do incremental synchronizing?
    If you are manually managing your music on the iPod, it doesn't do ANY syncing.

  • Thunderbolt connection to projector doesnt work: only part of the screen is projected. Solution??

    When I hook up my air to a LCD screen only part of the image on the air is projected. Solution anyone?

    Basic troubleshooting steps clearly outlined in the User Guide are restart, reset, restore from backup, restore as new.
    If you've gone through ALL the troubleshooting steps and you're still having the problem, then you most likely have a hardware issue and will need to bring your phone to Apple for evaluation.

  • Search file for text and delete the found text.  How?

    I need to know how to search a file for text and delete the found text. I think grep will let you do this but not sure of the syntax.

    Hi Dmcrory,
       In addition to what Camelot and nobody loopback point out, one must also consider the fact that UNIX text tools are largely line based. You also fail to tell us for what kind of text you are searching. If you are looking for multiple words, there's a very good chance of finding the expression wrapped onto different lines. With hyphenation, even single words can wrap to multiple lines. Tools that search line-by-line will miss these unless you use multiline techniques.
       Multiline substitutions require that you write "read-ahead" code for the command line tool that you're using and that you take that into account in the substitution. Given how you want the results to be printed out, you may also want to preserve any newlines found in the match, which is even more difficult. That could bring up the subject of line endings but that's a completely different topic.
       I apologize if this sounds discouraging. Multiline searches aren't needed that often and in most of those cases, exceptions can be dealt with by hand. I just didn't want you to get surprised by it. To give you an idea of how easy basic substitution is, have a look at Tom Christiansen's Cultured Perl: One-liners 102 and One-liners 101. Both have some "in-place" substitution examples.
    Gary
    ~~~~
       MIT:
          The Georgia Tech of the North

  • [GREP] – find/replace only first comma in paragraph

    Is it possible to find and replace only the first comma in paragraph with certain paragraph style with end of paragraph character using GREP search? Or in other words – to split paragraph into two paragraphs by replacing the first comma in paragraph with end of paragraph character?
    Claudius

    That's an interesting problem, and I think it takes at least two steps.
    The expression (^[^,]+),\s* will find all text from the beginning of a paragraph up to the first comma, which might be followed by whitespace and allows you to use the $1 operator in the change to field to save the text up to the comma, but replace the comma and following whitespace with anything you like. However, as soon as you replace that with a paragraph break you've created a new paragraph to search and you end up breaking at every comma.
    Instead you need to insert a stand-in symbol of some sort with a unique character style applied (so it won't get picked up any other way), for instance change to $1% and apply the style named "break" which does no formatting but flags the text for the next search.
    Now search for % with the "break" style and replace with the paragragh break (and no style).
    You should probably now search for .+ with the break style and change to nothing (or $0 for found text), and remove the style, just to be clean.
    There's still one problem, though, and that's that all the new paragraphs start with a lower-case character unless the first word after the comma happened to be capitalized. You could now search for ^. to find the first character in each paragraph and use the change format to apply a character style that assigns all caps, but that's really an ugly way to work.
    All of this will fall apart, too, I think if you have nested or GREP styles affecting the beginning text or the first character in any paragraph that you wind up with.

  • JEditorPane: how to replace small parts of the document?

    Hi
    Im trying to create an application that will allow two people to type into two different JEditorPanes, but have the two people essentially editing the same document. So if one person types someting into thier frame, I want that modification sent to the other frame as well.
    The problem I've come across is how to make changes to the contents of the frame without interfering with the person whos trying to type into it. That problem boils down to how do you replace only a small part of the document whithout taking control of the users caret?

    Hopfully I got your problem right. To change only small parts of the EditorPane's document should not be the probelm you can get it with EditorPane.getDocument(). But I think you have to take control over the caret, because the when user 1 has finished editing and sends the doc to user 2 who is editing the doc, user 2's caret position will change because the document length has changed.
    The easiest way would be to add an input area (TextArea) for each user where they can type theit text and than to add the text into the document when they press enter, so you don't have the trouble with te caret position. If you don't want to do this then you could try that: the input of the users is cached while they are typing (not changing the doc) till they press enter. Then the doc is send to the other user, the users doc in the pane is updated and his current typing is added to the end of the new received doc. You can figure out the correct position by doc.getLength() and set the new caret position to doc.length + currentTyping.length
    Hope that helps
    Eryk

  • I have Office 2011 which includes Word.  Ever since downloading Mavericks, when I try to send a two-page word document, some recipients get only one page.  Also sometimes when I burn an image from iPhoto on to a disc, only part of the image appears.  Why?

    I have Office 2011 which includes Word.  Ever since downloading Mavericks, when I try to send a two-page Word document by email, some recipients get only one page.  Also when burning an image from iPhoto (usually no larger than 1mb) on to a disc, only part of it appears.  It appears to have been magnified so that only a part of the image appears.  Can anyone enlighten me as to what is happening?  And how to fix it??

    I have Office 2011 which includes Word.  Ever since downloading Mavericks, when I try to send a two-page Word document by email, some recipients get only one page.  Also when burning an image from iPhoto (usually no larger than 1mb) on to a disc, only part of it appears.  It appears to have been magnified so that only a part of the image appears.  Can anyone enlighten me as to what is happening?  And how to fix it??

  • With 2 devices, how do I sync only part of the library on one device? That is, sync only music and not the podcasts.

    Trying to sync part of a library on one device and all of the library on another. Not finding any options to select only parts of a library to be sync'ed. Any help appreciated.

    In ipod menu in iTunes, tick the "manually manage music and videos" then select the items that you want to sync. Cheers!

  • How to copy only part of the music media folder and library to another Mac

    Dear friends,
    I run iTunes in Mac OS. The iTunes music media folder is now located in an external HD because it´s quite large (2T). The problem is that I´got a second Mac and I´d like to copy -in this second Mac, only part of my music using only its internal  HD (300 Mb) . How can I do this copy while preserving art and play-lists?
    Thanks in advance

    tcynk00 wrote:
    how I can transfer only selected pieces of music (all library will not fit anyway)
    that's what playlists are for.
    and how to maintain transfer process in future when I want to change the music on my nano.
    add/delete track to/from the playlist you sync to your device.
    JGG

  • Scrolling only part of the screen

    Hi,
    I have the following problem.
    1. I created a JFrame, that fills the whole screen.
    2. The frame contains two JPanels.
    Now for the problem:
    I want the top panel to hold a JPEG that is much bigger than itself, so it should contain a JScrollPane or a JViewport, because I want it to be scrollable. It seems, that I only can change the viewport, that the image scrolls downwards. For some reason the area doesn't even react when I try to change the position of the image, so that I can view the part of it that is outside of the panel. Is there anything I can do ?
    To better visualize the problem :
    Do you know the computer game civilization ? The bottom part of the screen holds menues. The uppermost part is a scrollable map. I want to create something similar.

    maybe you need a JSplitPane, split the frame into upper-lower two parts. The upper part holds the JScrollPane for the image panel, the lower part holds the second panel

  • HT1727 I downloaded my previous song purchases to my new MacBook and they are all only parts of the songs.. How can I fix this?

    I downloaded my previously purchased songs to my new macbook, but only parts of each song are available. How do I fix this problem?

    Delete the Song(s) and re-download...
    See Here  >  Download Past Purchases
    http://support.apple.com/kb/HT2519
    If no joy... Contact iTunes Customer Service
    Apple  Support  iTunes Store  Contact Us

  • T60 Fan Replacement - Which part is the right one?

    How do I know which fan model number to use? I have a 2613-CTO but on the parts info listing, 2613-CTO matches with 4 different model numbers: 
    41V9931 (integrated)
    41W6406 (integrated)
    41V9932 (discrete)
    41W6407 (discrete)
    How do I know which part is the correct one for my laptop?
    Any assistance would be much appreciated, thanks!!!

    Any  "discrete graphics" fan will do just fine, since that's what you have in that T60.
    Hope this helps.
    Cheers,
    George
    In daily use: R60F, R500F, T61, T410
    Collecting dust: T60
    Enjoying retirement: A31p, T42p,
    Non-ThinkPads: Panasonic CF-31 & CF-52, HP 8760W
    Starting Thursday, 08/14/2014 I'll be away from the forums until further notice. Please do NOT send private messages since I won't be able to read them. Thank you.

  • Acrobat 9 Find Function Needs to Highlight the found text

    Searching existing documents for a word using "Find" sometimes results in the word being highlighted and sometimes only the cursor is placed at the found word with no highlight. This is a problem because the cursor is very hard to locate without highlighting.
    The "Find" function should insure that found text is always highlighted.
    Or maybe there is a setting for this?
    (Also still waiting for a default View/Page Display to "Two Up Continous" as it constantly defaults to One Page which is a waste of the wide monitors.)
    Thank you.

    This bug has been fixed in the Acrobat 9.4.6 update:
    Windows:
    http://www.adobe.com/support/downloads/detail.jsp?ftpID=5244
    Mac:
    http://www.adobe.com/support/downloads/detail.jsp?ftpID=5238

Maybe you are looking for

  • Many Apps are no longer working after webOS 1.4 update! - please help!

    Hi, Many of my previously working Palm Pre Apps are no longer working after the webOS 1.4 update. Here are the ones that just return a blank/white screen after launching so far: SplashID Daily Devo Daily Light (Love) Absolute Fitness (some options no

  • Ipod mini keeps turning itself on and playing

    Hi, Hopin gsomeone can help me here. My iPod mini keeps turning itself on and playing..thus running down the battery overnight. I've checked that the alarm clock is set to OFF. I turn the iPod off, put Lock on the keypad and in the morning, it's turn

  • Slideshow export eats hard drive!!!

    I am working on my Macbook and I have about 15gb of free hard drive space. As I export my 8 minute slide show to a movie, Iphoto consumes tons of hard drive space, eating up the entire free space and causing the computer to crash. How can a slide sho

  • Still WAIT FA

    Hi B2B Gurus, We send a PO to our TP, it successfully went to TP and we got the MDN back.if we see the status of the reports tab, its WAITFA(waiting for functional acknowledge), later on Out trading partner send corresponding 997 for PO,successfully

  • Build installer LV2009, requires OLD distribution installation disks?

    When building an Installer using LabVIEW 2009, and including additional distributions, why does the installer builder require the original distribution disks from the install DVD/CDs?  Why are the version required not promoted to the LATEST update in