GREP for finding wrong facing apostrophes/quote marks?

I have this one set up
(?<=\w)((~[|~{))
But I'm not 100% convinced
What I really want to search for is
any double quote at the start of a word/sentence - but don't include it in the search
Ignore any text
Find the left quote or left apostrophe
I was doing this
.+?(\>(~{|~[)
But that was selecting the text before it
I just want to select the Apostrophe or the Quote marks.

What do you want to accomplish? Do you want to change straight apostrophes into typographic apostrophes?
If it is this what you intent, do following:
In the preferences activate typographic apostrophes, in the dictionary part select each language and put the correct apostrophe.
In the document take care that your paragraph styles have the correct language (and also the character styles)
In GREP change " to ". (Eg. in German it would change a "text" to „text”, but also «text» to „text”.

Similar Messages

  • GREP to find two left double-quote marks in a row?

    I'm usually pretty good with regexp, but this one is eluding me. I'd like to find a left quote ~{ followed by any number of characters -except- a right quote ~}, followed by aother left quote ~{. It should match a string like (using `` for the left quote):
    ``The rain in Spain, ``she said.
    But not match:
    ``The rain in Spain,'' she said, ``falls.''
    Thanks for the help!
    Perry
    KidPub Press

    What do you want to accomplish? Do you want to change straight apostrophes into typographic apostrophes?
    If it is this what you intent, do following:
    In the preferences activate typographic apostrophes, in the dictionary part select each language and put the correct apostrophe.
    In the document take care that your paragraph styles have the correct language (and also the character styles)
    In GREP change " to ". (Eg. in German it would change a "text" to „text”, but also «text» to „text”.

  • Inserting javascript - quote marks turn to an apostrophe

    I am having a strange problem with inserting javascript. The
    ending quote mark looks to be an apostrophe.
    type="text/javascript'> - and it seems to be screwing with
    the webpage reading the script. When I highlight it the quote mark
    is there. I have a few absolute paths to some of the javascript but
    it looks like this: <script src="
    http://www.xxxxxxx/scripts/default.js"
    type="text/javascript " ></script> - having to separate
    the quote marks that far to get it to read it - anyone know why
    this is?
    Thanks
    Rob

    There were oodles of things fixed in that upgrade to 6.1. You
    are at risk
    driving an unpatched 6.0.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Mick White" <[email protected]> wrote in
    message
    news:fpfk4v$fhg$[email protected]..
    > BOC_RUSH wrote:
    >
    >
    >> thanks Mick
    >>
    >> for peace of mind when I install DW via Adobe CS3
    Suite.. will that go
    >> away?
    >
    > For sure. And if I remember correctly DW issued a patch
    or an minor
    > upgrade. 6 to 6.1
    > Mick

  • GREP to find string of quotes

    I have some strange "strings" of quotes for which I need to search where there are consecutive single and double quotes with nothing between them. So "'"'Wording here.'"' More here."
    Can GREP be used to find a string of quotes that might consist of any number or combination of single and double quotes? The string would consist of either all open or all close quotes but could be any combination of double and single, starting or ending with double or single.
    Thanks,
    Ken

    SRiegel wrote:
    ['"]+
    (that's a single and a double quote inside the brackets) If you do this with typographer's quotes turned on [..]
    For the finding part, there is no need to toggle smart quotes off or on. For example, a single ' will find all three variants, whereas ~[ will only match curly open, ~] curly closed, and ~' only straight ones.
    Other than that, yeah, you want to make sure anyway Curly Quotes is active for the replacements.

  • Grep that finds curly quotes and changes to straight ones, but only after digits....

    Hello
    I am trying to find all the curly quotes that follow numbers and turn them into straight quotes.
    I am going to try and put this in a GREP style eventually, but in the meantime, I was testing it with find and change.
    Here is what I did......but it doesn't work.
    For the Find what- I did a positive look behind to find a digit and then pasted in the curly quote
    Fort the change to-I found the Unicode value for the straight quote.
    But it didn't work ;-(
    any thoughts out there!!
    babs

    Well, I'm no Engineer, and I suppose it would require all the font
    manufacturers to rebuild the fonts to handle it the same as small
    No...given that All Caps, is handled by InDesign without special
    font support, this feature could work the same way. A Character
    panel option (like All Caps) that Forces Straight Quotes.
    Or maybe that was your point. (?)
    It can certainly be done.
    Question is merely whether it should be done.
    But how much worse can it get than all those airplanes falling from the sky
    How could you ask such a thing? Surely having the entire universe
    sucked into a rift and enveloped in eternal blackness without sunshine,
    light, or heat is far worse than a few aluminum chassis falling into the
    ocean and there being no power grid to run InDesign unless you purchased
    the hand-crank version!

  • Find/Change Grep only finds one instance per paragraph, where am I going wrong?

    Hi,
    I've been using a Find/Change Grep to find any price with a comma and change that comma to a thin space (Newspaper's editorial style).
    But the Grep only finds the first instance of this per paragraph.
    Sample text...
    "$200,000 $200,000 $200,000.
    text at start of paragraph $200,000
    $200,000 text at end of paragraph
    tab     $200,000."
    In the sample the grep would miss the second and third price on the first line.
    I've been using...
    Find...
    (?<=\$)(\d{3})\,?(\d{3})
    also tried (\$\d{3})\,?(\d{3})
    Change to...
    $1~<$2
    Is there anything I can add to find these last two prices?
    I've been using this in combination with Batch Find Replace script, so different greps are set up for 5,6 and 7 digit numbers that start with $.
    Thanks.

    Try this,
    Find what: (?<=\x{0024})(\d{3})\,?(\d{3})
    Change to: $1~<$2
    Vandy

  • I hit the wrong entry for find my ipad, I hit the iphone, how do I get it to correct

    I hit the wrong entry for "find my ipad, how do i get it to correct

    You can log out of the currently logged in account by tapping on it in Settings > Store, and you should then be able to log in with the account that you want.

  • Pages won't break line between quote mark and parenthesis?

    Working on a manuscript in Pages, I find it won't do a line break between a quote mark and a parenthesis. For instance, there is the following text string:
    Buddha” (buddhavacana)
    Pages insists on keeping this string together, even if there's plenty of room on the previous line for the word Buddha” -- it will space out the previous line horribly to keep these two words together. If I remove the close-quote ” (which can be either a typewriter-style quote mark or curly), or the open parenthesis before the next word, it moves Buddha to the previous line. Doesn't matter what the words are, either; it can be:
    xxx” (xxxxxxxxxxxxxx)
    When I go to another paragraph and add a close quote to a word at the end of a line, then an open parenthesis to the word at the beginning of the next line, suddenly they're stuck together, both moved to the second line, leaving the first line grossly spaced out.
    If there's both a quote mark and an open parenthesis (even though they are separated by a space, thus should break between them when appropriate), Pages insists they have to stay together. The only way I can separate them is by putting a paragraph break (return) between them, which causes other problems.
    Anyone have any idea why this happens, if Pages can be told not to do it?

    I wrote about that because I was surprised to get a closing curly one when I typed a straight one just after the word buddha.  I assumed, wrongly, that, as there was no opening double quote before, I would get an opening one.
    I understood later that the app decipher the typed char as a kind of apostrophe which is highly surprising when the app is running in French. The English curly quote buddha” may make sense (I'm not convinced that it really does) but the French chevron buddha» doesn't.
    Forcing the opening char:
    buddha“ or  buddha«gave the same behavior which I thought to be odd.
    I know that it's not a common practice but when I study a behavior, I try to examine it in all its aspects.
    Back to what make or doesn't make sense, I understand the behavior of buddha’ but not the buddha” 's one.
    I never saw a double quote used as an apostrophe character.
    So, I will file a report to Bugs Hunters.
    Yvan KOENIG (VALLAURIS, France) samedi 28 mai 2011 17:48:37
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.7
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • Find and replace smart quotes with straight quotes?

    I understand I can turn off smart quotes so that I can type straight quotes, but I need to replace hundreds of curly smart quotes with straight quotes, is there a feature that will let me do this? I am using FM8.
    Thanx,
    Willian

    I am using FM9....so I don't know if the same shortcuts apply, but this is what I found out last week.
    Use the Find and Replace tool:
    With smart quotes turned off and the Num Lock key turned on:
    Alt0147 will give you beginning quotation marks
    Alt0148 will give you ending quotation marks
    In the Find box use ALT0147 or ALT0148 for the beginning or ending quotes. When you click in the box and type
    one of the shortcuts the correct quote will be shown in the box.
    In the replace box type the regular straight quotes on your keyboard.
    I was thrilled that it would work!...course you do have to do them separately and be careful not to replace the curly quotes
    that you want to leave in your document.
    Hope this helps using FM8....
    ls

  • Pages 5.2.2, every line ends with a quote mark

    Hello, hope someone can help with this problem.
    As soon as I start to type words in Pages, a double quotation mark appears after my words.  Can anyone advise how to stop this happening?
    If I type with invisibles on, the quote mark doesn't appear.
    Others in the office running the same software don't have this problem.  Is there something wrong with my setup?
    Thanks very much.
    Allen

    Pages v5.2.2 is an entirely different application than Pages ’09. Because it lacks over 100 features/functionality available in Pages ’09, it will quietly filter content from older documents that it doesn't support. That's one issue.
    Is anyone else in your office using the Interstate font with Pages v5.2.2, and the same OS X 10.9 release?
    Here are two simple things you can do, though I am betting on item 2 that will rebuild your system and local user font databases.
    Use Disk Utility to verify/repair your permissions
    Boot into Safe Boot Mode
    Shutdown
    At the boot chime, press and hold the shift key until you see a grey, horizontal progress bar
    At the login prompt, after you type in your password, and before you click the arrow to login
    Press and hold the shift key until you are logged in with the Finder menu bar showing
    Test Pages v5.2.2 with your Interstate font (things will be slower because of Safe Boot Mode)
    Reboot normally

  • Apostrophes, quotation marks, dashes causing problems in emails

    MacBook Pro
    OS: 10.4.7
    Program: Mail
    Since upgrading to an Intel MacBook Pro (10.4.7), my outbound email has been turning into a weird jumble of glyphs.
    For some recipients, my apostrophes and quotation marks turn into a serious of four glyphs...for other recipients, all the dashes and em dashes disappear...for yet other recipients, all the punctuation completely vaporizes.
    I’m emailing to an extremely broad set of recipients, as they are my customers from all over the country. No single ISP is in common, no particular browser, etc. The only reason I even know about this is because I’m able to see the catastrophe in my original text included in their responses. Doesn’t matter whether I’m sending from home (with our cable company ISP) or from work (an entirely different cable company ISP)...same mess either way.
    Our outbound messages are nearly incomprehensible to read—any suggestions?
    MacBook Pro, G4 PowerBook, G4 tower   Mac OS X (10.4.7)  

    The only reason I even know about this is
    because I’m able to see the catastrophe in my
    original text included in their responses.
    That doesn't necessarily mean that your outbound mail is appearing strange to the reader. I would advise you to check that and verify that you really have a problem.
    If your readers do see strange characters, it is often because you are sending rich text (which is really html mail) and they are using MS Outlook. Some possible fixes are in this note:
    http://homepage.mac.com/thgewecke/woutlook.html
    PS Getting rid of all smart punctuation (curly quotes and apostrophe's, special dashes) may also be helpful.

  • Grep to find first occurrence of a particular word in a story

    Hello Grepers
    I haven't had luck working out a Grep to find first / last occurrence of a particular word in a story.
    To find the first occurrence of the word hello in a paragraph I would use this grep.
    (Hello(?!=Hello*$))
    For the last this works.
    ((?=Hello(?=.*Hello)))|(Hello(?!=Hello*$))
    I have tried single line and multiline prefixes but they don't do the trick.
    Waiting in suspence,
    Trevor

    Hi Marc,
    Thanks for your reply, I'm glad you got my subtle hints.
    1) First Hello in the paragraph(s)
    Marc Autret wrote:
    Also, it seems to me that the GREP patterns you've posted are wrong and only work by accident. For example:
    (Hello(?!=Hello*$))
    actually means: find 'Hello' if and only if the match is not followed by '=Hell' and 'o' zero or more times and an EOL.
    Well Marc I made a Hell of a mistake!!!
    I meant to write (Hello(?!=Hello.*$)) with a dot there which at least is not quite as stupid if not more correct.
    In fact both (Hello(?!=$)) without a . and Hello(?!=^) work, well sort of work for the first Hello of the paragraph(s) depending on the were one start the search from (before the first Hello works otherwise it will find the next "first" Hello of the paragraph.
    I said sort of because I naively presumed that GREP styles would work like GREPS, dumb hey.
    I was really looking to use these GREPS in GREP styles, well you can't.
    In a GREP style
    (Hello(?!=$)) or any of its variants will apply the style to all occurrences of Hello in the paragraph.
    I can partially circumvent this problem by adding a second GREP STYLE which applies an anti style to all words after the first Hello (?<=Hello).*
    i.e. I have a want my first Hello to be bolded then set the first style for bold and the second to regular.
    This however is not practical if one wants to auto style more than one word in this way in other words to do the same for the first Hi and the first Hello in the paragraph.
    As a regular GREP solution providing that one starts the GREP search before the first occurrence of Hello It will work.
    2 & 4) First and Last Hello in the story
    Again these GREPs don't work using GREP styles, this I think is because GREP paragraph styles only look within the one paragraph at a time they are applied to.  So they can't look at the preceding or following paragraphs to see if they contain Hello or not.
    If I am correct I see no work around to this and am will to pay 10 Pounds, Euros or Dollars to whoever comes up with a non-script fully functional  GREP styles solution for this (I think my money's safe)
    Regarding the regular non styled GREPs they nearly work as stated.
    When (?s)(Hello)(?!.*?\1) is used to find the last occurrence of Hello in the story, if the find tab is used it will firstly find the last Hello of the story then it will go back and find the one before that!! then it will go onto the next story.
    Using the GREP in script works as stated.
    The easiest way of course to find the first and last Hello in a story, document etc. by script would be
    app.findGrepPreferences.findWhat = Hello"
    myFinds = myWhatEver.findGrep();
    First occurrence   myFinds[0], last occurrence   myFinds[-1].
    HOWEVER NOT PARTICULARLY EFFICIENT!
    3) Last occurrence  of Hello in paragraph.
    This one works perfectly both with regular GREPS and GREP styles.
    In summary
    GREP STYLES: only the (Hello)(?!.*?\1) last Hello in the paragraph GREP works.
    GREP FIND TAB: the first Hello in the paragraph GREP finds the first Hello after the cursor, the first in the story works in the limited way as written, last in story has the problem of finding the second last Hello after finding the last Hello, Last in paragraph works flawlessly.
    GREP SCRIPTING: all work without problem except for the first Hello in the story that has the problem of needing to extract the last 5 letters which for my automatic text / GREP changer is a bit of a problem but for general scripting would not be problematic.
    Once again Marc thanks for your input, I doubt there's much if anything  to add on the topic maybe Laurent Tournie from indigrep.com might have some ideas.  I don't know his contact details so if you think it's a good idea please can you send him a tweet / mail.
    Regards
    Trevor

  • Finding location of single quote ( ' ) in a string

    Hi,
    I have a need to find the location of second single quote in a string.
    Below query works fine for a string without single quote. It gives me the location of word 'HIER' for 2nd occurrence.
    select instr('HIER A HIER B','HIER',2) from dual
    I want to do the same with single quote. I am trying with the below query.
    select instr('HIER A '' HIER B ''',chr(39),2) from dual
    But it always gives me the location of first occurrence of single quote and not the second.
    Any idea about this issue..?
    Thanks

    select regexp_replace('AND ( ACCT_V.HIER_NODE_NM = ''D0100'' AND TODAYS_DATE IS NULL ','.*''(.*)''.*','\1') from dual
    select substr('AND ( ACCT_V.HIER_NODE_NM = ''D0100'' AND TODAYS_DATE IS NULL ',instr('AND ( ACCT_V.HIER_NODE_NM = ''D0100'' AND TODAYS_DATE IS NULL ','''')+1,instr('AND ( ACCT_V.HIER_NODE_NM = ''D0100'' AND TODAYS_DATE IS NULL ','''',1,2)-instr('AND ( ACCT_V.HIER_NODE_NM = ''D0100'' AND TODAYS_DATE IS NULL ','''')-1) from dualComment to the second approach: check SUBSTR() syntax, the second numeric parameter is length of the fragment, not the ending position. Still, RE approach is way shorter and more readable, isn't it? ;)

  • How can I change apostrophe & quote from curly to straight. I'm using Word.

    I'm using a brand new Mac book Pro with word loaded in it. The curly quote marks and apostrophes mess up my feeds and translate as question marks inside of dark diamonds. I know this can be fixed because my 2007 mac book pro did the same thing regarding feeds. A technician came over and fixed it, but he's now in Canada, and I'm unable to contact him.
    Thanks

    Check out these two pages:
    http://office.microsoft.com/en-us/word/HA101732421033.aspx
    http://socialmediasystems.com/blog/microsoft-word-blogging-tips-–-change-the-cur ly-quotes-to-straight-quotes/

  • Problem report for finder: finder quit unexpectedly

    Last night I removed some viruses etc., from my computer that were making ads appear and also tabs opening when not wanted by random ads. I then installed virus protection, and also installed a software update. During those processes I restarted my computer a few times. The last time, finder wouldn't close down but in the end my macbook restarted and since then I have this message constantly popping up: problem report for finder - finder quit unexpectedly. I can't open up anything else and get a message saying when I try: check with developer to make sure safari (as an example) works with this version of OS X. You may need to reinstall the application.
    In ten the details part it states crashed thread 0 but it also mention application specific information:
    dyld: launch, loading dependant libraries, ignoring DYLD_*env vars
    and then:
    dyld error message:
    library not loaded:/ system/library/frameworks/videotoolbox.framework/versions/a/videotoolbox
    referenced from: /system/library/frameworks/qtkit.framework/versions/a/qtkit
    reason: image not found.
    Please please help. It's driving me nuts. I really need my computer. So much that Im even contemplating just buying a new one if nothing works :/

    FIrst, get rid of your "virus protection," which is either useless or worse than useless. Then see below.
    If you don't already have a current backup, back up all data, then reinstall the OS.* You don't need to erase the startup volume, and you won't need the backup unless something goes wrong. If the system was upgraded from an older version of OS X, you may need the Apple ID and password you used.
    If you use FileVault 2, then before running the Installer you must launch Disk Utility and select the icon of the FileVault startup volume ("Macintosh HD," unless you gave it a different name.) It will be nested below another icon with the same name. Click the Unlock button in the toolbar and enter your login password when prompted. Then quit Disk Utility to be returned to the main Recovery screen.
    There are ways to back up a computer that isn't fully functional. Ask if you need guidance.
    If you installed the Java runtime distributed by Apple and still need it, you'll have to reinstall it. The same goes for Xcode. All other data will be preserved.
    *The linked support article refers to OS X 10.9 ("Mavericks"), but the procedure is the same for OS X 10.7 ("Lion") and later.

Maybe you are looking for

  • How to identify column name in ALV tree when user clicks a particular field

    Hi All, In My requirement i am displaying ALV Tree. In Which When the user clicks on a particular header column it should navigate to other transaction. Now the issue is it is navigating to other transaction when we click on any column of the header

  • My Ipod wont show up in My Computer. But it is visible in itunes.  HELP!

    OK I have tried everything reseting and exetera. It works on my old IBM laptop but on my new Dimension 9150 Dell. I just want to transfer music to my new computer. Please Somebody help!

  • [SD] Third party with Ship-to different to Sold-to

    Dear all, >> In sales order third-party, I change the partner Ship-to different to Sold-to. When making good receipts for the relavant Purchase order (created for this sales order), the system outputs the Error Message no. KE396: Inconsistency betwee

  • Treo 700p restarting when trying to sync

    My treo 700p keeps restarting whenever I try to sync it with my Mac. I have been having syncing problems for awhile now, but now it just restarts everytime, and discontinues the sync. Any ideas on how to proceed? I was going to troubleshoot the synci

  • Production order type dependent parameters

    Dear Frndz, plz help me out with the various parameters which can be set based on the production order type. and the step by step procedure to configure the same. Regards, Srini.