Grep, give quotes

Hi guys,.

I'm pretty new to Grep stuff, although it seems kind and logical.

I'm trying to give it the content of the quotes in my paper (am happy for citations to also italic, so no worries to be too smart to try to exclude them)

The problem comes when I use:

".+"

What makes all the words italic even if they are between two sets of quotation marks, i.e.

'Quote text' text outside the quote 'Text in the second quote' text outside the quote 'text in third Quote'

I don't know how to get that, the following do not give the text outside the quotation marks.  I guess that I must seek an odd number of quotations at the beginning of the paragraph and then don't count text between this quote and the next.  Or maybe is there a better way.

'Quote text' Text outside of the quote 'The text in the second quotation' Text outside of the quote 'Text in third quote'

Any help would be much appreciated.

See you soon

The problem here is that, by default, GREP is GREEDY. When lucky, the operators + and * try to catch as much as they can (still without violating other constraints that you put in the expression, of course).

In your case

".+"

perfectly matches the entire string, from the beginning to the end... But you can force GREP to use the shortest possible match by adding a single '? ' after the expression of repetition. This should work for you:

".+?"

Tags: InDesign

Similar Questions

  • A lot of storage to grant

    Hi all

    11.2.0.1

    We have a lot of storage space for each application, data, index, large tables, tables tran, etc.

    What is tedious to grant them one by one to each user of the application.

    What I do is to grant resources to HR for all to be writable to HR. But then revoke grant to SYSTEM tablespaces and another tablespace is not allowed for the user of the application.

    It is a good idea?

    Thank you

    Petra k.

    f55237a7-2c38-4DB3-a7a3-1d77256f0730 wrote:

    Thanks, Justin.

    Yes, we have created tablespaces for consumption of the apps. But we never give quota for each application limit, that space is nothing compared to the apps process disruption because of the quota limits. This means 'quota' is not appropriate to give users of the application. While all should have unlimited for app except the SYSTEM tablespaces

    WSM

    Read what Justin said:

    All of the users who need specific objects (and thus the necessary quota on any tablespace) must be small and finished and should evolve very slowly.  Users of applications should not owner of the objects.  Thus, they may not on any tablespace quota.


    I have two databases in support of two different applications of PeopleSoft.  Each has quite a few spaces for storage, as specified by the application.  But a user's quota and it is the user who has the objects... It is not the user who is connecting and using the application.

  • Doubt on the role of RESOURCE

    Hello

    Role of resource provision to give quota unlimited on tablespace default user.

    So why it is not displayed when I ask like this
    BANNER
    --------------------------------------------------------------------------------
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE    11.2.0.1.0      Production
    TNS for Linux: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    
    SQL> select PRIVILEGE from role_sys_privs where ROLE='RESOURCE';
    
    PRIVILEGE
    ----------------------------------------
    CREATE SEQUENCE
    CREATE TRIGGER
    CREATE CLUSTER
    CREATE PROCEDURE
    CREATE TYPE
    CREATE OPERATOR
    CREATE TABLE
    CREATE INDEXTYPE
    Second

    I created a user granted connect and create table privs only. Now I can create the table, but when I try to insert then I get the error that not with quotas on users to TS. Why can it create the table in the first place. ?

    Thank you

    I think it's something hard coded into Oracle for some time.

    Tom Kyte says he is documented in http://asktom.oracle.com/pls/apex/f?p=100:11:0:P11_QUESTION_ID:7540675724395 #72949126159962, but I don't the have not found in the online documentation.

  • What is air?

    Hello. Can someone tell me what air is? lol and not the air you breathe...

    I have Flash CS4 and I wonder if I need to air all for the project that I'm doing. I was simply using flash with AS3. But when I do the final export I need flash for the kind of "be the interface of the computer. Its for an educational exhibition.

    Thank you!

    any application that needs to access files on the user's computer would be appropriate for air.

    regular sovereign wealth funds have very limited access to the filesystem of the user while air apps can read and write to the file system of the user (with some restrictions).

    I created air apps which were distributed by the companies for their sales force and created a database on employees computers and used this database to allow sales staff to give quotes to the customers of the company using the uniform price structure.  the company may update their sales force prices evenly when the sales staff is checked into the company Web site.

    This was an improvement over their previous updates of price by fax that relies on sales staff receiving and using the latest prices and had no easy way for the company to make sure that everyone was using the latest prices without checking manually.

  • Is it possible to assign more than one tablespace to a user?

    Hello

    Is it possible to assign more than one tablespace to a user? How?. It makes no sense to do?

    Thank you

    You can only assign a default tablespace to a user account, but you can give quotas to different storage spaces for the same user account. If the storage space to use is not that default to the object creation tme, objects must be created with the TABLESPACE clause.

    It may make sense for the same user account to use different storage spaces. Admin Guide http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/tspaces.htm#sthref1136 says:

    >
    The spaces of multiple tables using

    The spaces of multiple tables using allows you more flexibility in executing database operations. When a database has spaces of multiple tables, you can:

    *

    User data separate from database data dictionary to reduce I/O contention.
    *

    Separate data on a single application according to the data of another person to prevent multiple applications be affected if a tablespace must be taken offline.
    *

    Store different data files of different areas of storage on different disk drives to reduce I/O contention.
    *

    Use individual offline storage spaces while others stay online, providing a better overall availability.
    *

    Optimize tablespace by booking a storage space for a particular type of use of the database, such that high day activity, read-only or temporary storage of segment.
    *

    Backup individual storage spaces.
    >

    Edited by: P. Forstmann on 5 Feb. 2010 09:10

  • GREP to search for the string of quotes

    I have some strange "strings" of quotes that I need to look where there are single quotes and double row with nothing between them. So ' ' ' ' wording here. ' " "" "Here. »

    GREP lets you search a string of quotes that could consist of a number or combination of single and double quotes? The chain would consist of all open citations or nearby, but could be any combination of double and single, beginning or ending with simple or double.

    Thank you

    Ken

    SRiegel wrote:

    ['"]+

    (it's a single and double quotes inside the square brackets) If you do this with typographical quotes turned on [..]

    As for the finding , there is no need to toggle the quotes or disable. For example, a single ' will find all three variants, while ~ [will match only open loop, ~] closed curly, and ~' those just right.

    Other than that, Yes, you want to make sure that even when curly quote is active for replacements.

  • Grep which finds quotes and review for those on the right, but only after the numbers...

    Hello

    I'm trying to find all the quotes that follow the numbers and turn them into quotes.

    I'll try to put this in a GREP style eventually, but in the meantime, I examined it with find and change.

    Here's what I did... but it does not work.

    To find it - I have a positive look behind to find a digit, then pasted into the curly quote

    Fort of change to-I found the Unicode value for the right quote.

    But it did not work ;-(

    any thoughts there!

    Babs

    Picture 1.png

    «is any sort of double quotation marks (straight, curly, opening and closing).»

    To force some sort of quote, use one of these:

    ~ {double opening curly

    ~} double closing curly

    ' ~ ' Straight

    "(Remplacez seulement) uses the typographer use quote setting (that is, if on, change to appropriate completed open or close, otherwise use the right)"

  • grep search for any number of words in quotes

    I understand (from what I've read) that what follows will be a single word between quotation marks:

    (?<=")\w+(?=")

    Can someone explain please how to modify this search grep in a way that allows me to find any number of words in a pair of double quotes (whether straight or "curly")?

    (Yes, I'm very new to this, but I searched a dozen sites and can't seem to find the answer.)

    Many thanks in advance,

    Ron Herrmann

    (?<>

  • Agilent mxg N5183 gives-113, &amp; quot; Header not defined &amp; quot; When I try to activate the output, using the RF

    I connect to a generator of signals MXG (N5183) via the lan, Labview 2009 with the labview driver. I get the above error when trying to activate the output. Is this a bug in the driver? Everything else works fine.

    double post

  • Table of contents - I must give up the &amp; quot; OCD &amp; quot; Popup

    Skinny on skins has the cure for the brief popup of 'Topic' in the subject box when access you to another topic or refresh the screen with the pointer in the subject box.

    Now, I noticed a similar thing happening in the table of contents. Screen refresh or jump to another topic and put the pointer quickly in the region TOC reveals 'OCD' as ToolTip popup.

    How can I get rid of this?

    ClubHans-

    It took a bit of research: in whphost.js:

    To find:

    var sHTML ="

    and replace with:

    var sHTML ="

    You can remove this:

    title =------"" + this.msName + "\" "

    You can use ReplaceEm to save and repeat your search routines after each regeneration.

  • How to operate the grep and awk on windows

    Unix tools

    I am looking for a way to run grep and awk unix on Windows XP Professional utilities. There is a suite of tools available that will give me this ability?

    Use the UnxUtils package above, I think that I've been able to do what you're trying to do it using the following command in a command prompt window:

    gawk ' {print $3------} "; J1. ------file name '$1} '.

    It seems to work if you slash escape quotes in the braces.

    HTH,
    JW

  • grep for format of the numbers in square brackets]

    Hello, I have quotes in the text that appear in the ground [1] or [1-3] or [1, 3-5, 4: 7-10]. I want to use the blue color for the numbers in the model but all (, or-) else remains black. I use this grep ((?<=[\[]))([[:digit:]]+(,\s|-)) * [[: digit:]] + qui me donne une couleur bleue pour chaque chose.) How can I just blue numbers?

    Thank you.

    Why?

    It does not matter.

    It would be easy with Grep find & replace. But it is very difficult to do with Grep styles (without seeing the entire document). In this case, I can only give you the Grep styles:

    It is perhaps useful to you.

    Have fun

  • styles and living legends... Hebrew grep / unicode

    I'm working on a file that is located mainly in English with occasional Hebrew word.

    I use a grep style to 'catch' enter the words (in a specific range of unicode) Hebrews and the style in Hebrew characters, which works brilliantly in conditions normal paragraph text, but not in the living legends, so anything in Hebrew rises as small boxes.

    I can style completely in Hebrew legends and come the English words in English, but in a font I don't really like.

    Any ideas?

    Hi Ruth,.

    CC? Then you're in luck!

    I just tested this, and it works.

    What you need to do is to create a new composite font and use it as the

    fonts for your captions.

    Go to Type > composite fonts.

    Click 'new '.

    Give it a name (for example, "RuthsFont") and based on the default value (it

    alone on the base if you have never used this will probably

    front feature).

    Click OK.

    Now you have a list, with "Core", "Latin", "numbers".

    Click on the name of the font next to "Base" and select the Hebrew font, you

    you want to use.

    Click on the name of the font next to "Latin" and select the English police you

    you want to use.

    And you can do the same for "Numbers" If you want to.

    Click on save, then OK.

    Oh: you have created a new police act called "RuthsFont".

    Now in the options for the paragraph style that you use for your

    legends, in the drop-down list choose the newly created

    "RuthsFont" - it can be a little hard to find--somewhere in the

    middle of the list - the easiest way to find it so can type the

    quote directly: 'RuthsFont '.

    Finished! Your legends should now display Hebrew and English properly

    - and you have to decide exactly which fonts to use for Hebrew and

    the English.

    HTH,

    Ariel

  • JavaScript Command Window.getComputedStyle (document.body, ': after') .getPropertyValue ('content') returns the content with quotes

    When I use in my css:
    body: after {}
    content: "mobile";
    display: none;
    }
    And by controlling javascript with the command:
    size var = window.getComputedStyle (document.body, ': after') .getPropertyValue ('content');

    I get in firefox (mac v 23.0.1) returns the '' mobile' ' string with double quotes as return and, therefore, checking if size == 'mobile' returns false. In safari, the value returned 'mobile' without the quotes. How is it?

    What you get is a string that represents what you specified in the content.

    A content specification can include other things like a counter: body: after {content: "subjects []" counter (topics) "]" ;}}

    size = window.getComputedStyle(document.body,_':after').content would give: 'subjects []' counter (topics) "].

    If you need test the exact text of the contents: size == ' 'mobile "";

  • Computer hangs at startup. Error quota.dll

    I'm not very technically advanced with computers.  Both my desktop computer (which I use rarely) and my laptop (which I use all the time) suddenly started to freeze at startup.   I can use it in SafeMode only. I get the following error messages: 1) Local\Temp\nszBF6B.tmp\quota.dll I saw a RUN DLL eror.

    (2) my Norton 360 gives an error message, but I can't read it because it is visually blocked by mistake #1 described above.  In the corner of the box Norton 3035.2 and also something I see on "corrupted files".

    (3) I have this message too when I look in the Device Manager on the "IR Consumer devices" (whatever they are)

    This device does not work properly because Windows cannot load the drivers required for this device. (Code 31)

    Click on 'Search for solutions' to send data about this device to Microsoft and to see if there is a solution available.

    I have Windows Vista Home Premium as the operating system.  My laptop is a HP Pavilion Dv7 and I have this info, I found in Device Manager:

    Computer: Assisted ACPIx64 PC, disk drives ST9500325AS ATA device, AMD Turion (tm) X 2 Ultra Dual core mobileZM-82

    I had been using Adobe Photo Shop Elements 7 a lot just before everything has frozen on me.  If you can help me I would be very grateful.   Thank you

    Hello

    I suggest you to enable half the services and to know which application is causing the problem.
     
    Note: After troubleshooting, be sure to set the computer to start as usual as mentioned in step 7 in the above article.

Maybe you are looking for

  • Download stack Bluetooth USB dongle for Windows 7

    I have a Toshiba USB bluetooth dongle. The software will not be installed using Windows 7 and the dongle doesn't work at all on my PC. Download only that I could find for the software was for Toshiba laptops! Where can I download the software and dri

  • the use of camera web usb on sbrio 9636

    Hello I want to use logitech camera / webcam C170 on single board rio sbRIO9636 to the perception of the vision. (a) is this unit supported by sbRIO9636, page on http://digital.ni.com/public.nsf/allkb/33131C00626C5B6E8625788D00025FC1 shows that the m

  • Relativamente alla request di supporto 933493733 [CF]

    Buonasera, abbiamo due well brain SAS HD 1 TERA by dell t610 server, arrivati I nuovi abbiamo seguito procedure brain by he rebuild del nuovo disco. Procedure fatta sia dal bios e sia dall'open manage my e tutti due unfortunately I have brain incomin

  • BlackBerry smartphone WIFI / XBOX 360

    Good question for you GURUS... I have a Curve 8530...Is it possible for me to do a scan with my xbox 360 and locate the mobile web and connect to Internet with my Xbox 360?New teas KINNECT XBOX 360 have built in wifi...Personally, right now, my only

  • Audio lost when downloading on Facebook

    I use first element 14 to create a video that I will upload to Facebook. In my video, I have a background music, which is in the piece of music, and the voice that is the way with his video. When I export the video on my computer everything works fin