How can I write this GREP query correctly (CS4)

Hello.

I have a, uh, interesting problem. I got a HUGE page layout document. copy typed in word... and have ' cleaned every regular:

-to - and multi-retourne to the simple and so on.

However, the editor has throughout the copy (by effect? LOL) decided to single space the letters of the words randomly in the text as follows:

It is a E x a m p l e, of what he has done and is a massive p r o b l e m / e h a d a, c e h!

Ok... I try to work on the proper GREP but have so far failed. What I need, is to find any space white between two simple letters and replace it with, well, to remove them. I'm into hysteria with myself as it seems so simple and yet I can not understand it.

So, here I am enlisting the help of the GREP Boffins out there.

Thank you sincerely

Grant

It would be: search

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

replacing it with nothing - assuming that these spaces, as Peter points out. It really could be followed as well. It's (I think) so a style German emphasis to the space of words (but not as big as a set of 'regular' space).

You'd also better to check than if there are really just words at random, otherwise you will lose focus. If you want to mark the words with a character style, you cannot use the above GREP. Interestingly, I can not write a single GREP that removes the spaces and add a character style to the text at a time... But you can use the GREP

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

with a character style in the replace with formatting field to mark any text with a style, and then remove the outdoor areas.

Tags: InDesign

Similar Questions

  • How can I write this loop?

    How can I write this code works as follows.

    When btn1 is clicked, SenderLoad must be 'clay' AND click btn2, SenderLoad must be 'iron', etc...

    var mgB:Array = [btn1, btn2, btn3 btn4];

    var mgBW:Array = ["clay", "railway", "cotton", "leather"];

    var SenderLoad: LoadVars = new LoadVars();

    var ReceLoad: LoadVars = new LoadVars();

    var mgNum:Number = 0;

    for (i = 0; i < mgBW.length; i ++) {}

    mgBW [i] .onRelease = function () {}

    mgNum ++

    SenderLoad.word = mgB [mgNum];

    SenderLoad.sendAndLoad ("http://www.web.com/my.php", ReceLoad, "POST" ');

    ReceLoad.onData = {function (src)}

    var messageA:Array = src.split(",,,");

    ldrB2.html = true;

    for (var i: Number = 0; i < messageA.length; i ++) {}

    var a:Array is get [i].split(",,");.

    ldrB1.htmlText += a [0];

    ldrB2.htmlText += a [1];

    }

    }

    }

    };

    If you use the movieclip buttons:

    var mgB:Array = [btn1, btn2, btn3 btn4];
    var mgBW:Array = ["clay", "railway", "cotton", "leather"];
    var SenderLoad: LoadVars = new LoadVars();
    var ReceLoad: LoadVars = new LoadVars();

    for (i = 0; i
    .Ivar Construction [i] = i;
    mgB [i] .onRelease = function() {}
    SenderLoad.word = mgBW [this.ivar];
    SenderLoad.sendAndLoad ("http://www.web.com/my.php", ReceLoad, "POST");

    };
    }
    ReceLoad.onData = {function (src)}
    var messageA:Array = src.split(",,,");
    ldrB2.html = true;
    for (var i: Number = 0; i
    var a: Array = get [i] .split (",");
    ldrB1.htmlText += a [0];
    ldrB2.htmlText += a [1];
    }
    };

  • How can I apply this two query?

    I have two employees from table to table and CSEReduxResponses

    As part of table, I

    CREATE TABLE [dbo].[employee](
      [emp_id] [int] IDENTITY(1,1) NOT NULL,
      [emp_namefirst] [varchar](255) NOT NULL,
      [emp_namemiddle] [varchar](50) NULL,
      [emp_namelast] [varchar](255) NOT NULL
    ) 
    

    I react

    CREATE TABLE [dbo].[CSEReduxResponses](
      [response_id] [int] IDENTITY(1,1) NOT NULL,
      [employee] [int] NOT NULL,
      [employeedept] [int] NOT NULL,
      [star] [tinyint] NOT NULL,
      [status] [int] NOT NULL,
      [approvedby] [int] NULL,
      [approveddate] [datetime] NULL,
      [execoffice_status] [int] NULL,
    
    
    )
    

    Im trying to get the employee with the execpffice_status of MAX (it's a 1 or 0).

    I have this request I made for her

    select top(1) with ties employee, SUM(execoffice_status) as 'total'
      from   CSEReduxResponses
      group by employee
      order by 'total' desc
    

    my request for the employee table is

       select emp_namefirst as first , emp_namelast as [last]
      from phonelist.dbo.employee where emp_namefirst is not null
    

    How can I get this request 2 together so I can output the name of the employee (first and last)

    with the max exeoffice_status?

    IM using

    Microsoft SQL Server Management Studio10.0.2531.0

    WRONG FORUM!

    This forum is for Oracle - you must post in a forum of sql server.

    Please mark the thread ANSWERED and repost in the appropriate forum.

  • How can I write this small function to create the number of strips, please?

    Guys,

    How can I have a create table according to the argument passed. I'm doing this right?

    function createArray(n:int):Array

    {

    for (var i: int = 0; i < n; i ++)

    {

    nArr var = new Array();

    }

    return nArr [i];

    }

    Thank you very much.

    var aArraySet:Array = createArraySets (5); create 5 paintings

    Table 1-> aArraySet [0]

    Table 2-> aArraySet [1]

    Table 3-> aArraySet [2]

    Table 4-> aArraySet [3]

    Table 5-> aArraySet [4]

    function createArraySets(n:uint):Array

    {

    var aArraySet:Array = new Array();

    for (var i: uint = 0; i

    {

    aArraySet.push (new Array();

    }

    Return aArraySet;

    }

  • How can I write this in sql? (an another headcracker challenging the report)

    Hi guys!

    I need to create / generate a report. I intend to do all of this with only pure SQL.
    Been cracking my head for days, but nothing helped.

    Hope you gurus here me straightened out.

    Here it goes. I have a table

    TABLE USAGE_REPORT
    ------------------------------------
    Date date of daily
    BalanceCF NUMBER - the sum of initial departure or (balancebf)
    Topup_amount NUMBER amount topup so far
    Usage1 NUMBER - duration of the use of $ on certain prod
    2 NUMBER - duration of the use of $ on certain prod
    BalanceBF NUMBER - BalanceCF + refill - usage1-2 (which is also the next date of BalanceCF)

    -----------------------------------------------

    Example1
    Please see this link
    http://img9.imageshack.us/img9/708/88149028.gif

    asumming that is my sql

    WITH dates in the FORM
    (
    SELECT trunc (sysdate) + level dmy
    DUAL CONNECT BY level < 366
    ),
    Charging as
    (
    As the SELECT trunc (purchase_date), sum (payment_amount)
    Purchase
    Trunc GROUP (purchase_date)
    ),
    Usage1 as
    (
    As the SELECT trunc (connect_date), sum (charged_amount)
    OF tab1
    WHERE prod_id = "xxx".
    GROUP BY trunc (connect_date)
    ),
    2 as
    (
    As the SELECT trunc (connect_date), sum (charged_amount)
    Of THE tab2
    WHERE prod_id = "yyy".
    GROUP BY trunc (connect_date)
    )
    SELECT * DATE D
    LEFT OUTER JOIN RELOAD T
    WE (D.DMY = T.DATED)
    LEFT OUTER JOIN USAGE1 U1
    WE (D.DMY = U1. DATE OF THE)
    LEFT OUTER JOIN U2 2
    WE (D.DMY = U2. (DATED);

    However

    T1) how can I start to 'launch' the 1st row
    BALANCECF so that i can do the math
    of

    BALANCECF + REFILL - USAGE1 - 2 = BALANCEBF

    Q2) how can I put the value of BALANCEBF in the 2nd line of BALANCECF to make more calculation?

    Q3) is that it has something to do and connect? parent-child relationship

    Q4) brief how to make it look like the photo attach above?

    Help, please!
    Best regards
    Noob

    I use 200 as initial balance_cf. did you not sample data, so code below is not tested:

    WITH dates as (
                   SELECT  TRUNC(SYSDATE) + level dmy,
                           200 balance_cf
                     FROM  DUAL
                     CONNECT BY level < 366
                  ),
         topUP as (
                   SELECT  trunc(purchase_date) dated,
                           sum(payment_amount) topup_amount
                     FROM  purchase
                     GROUP by trunc(purchase_date)
                  ),
        Usage1 as (
                   SELECT  trunc(connect_date) dated,
                           sum(charged_amount) usage_amount
                     FROM  tab1
                     WHERE prod_id = 'xxx'
                     GROUP BY trunc(connect_date)
                  ),
        Usage2 as (
                   SELECT  trunc(connect_date) dated,
                           sum(charged_amount) usage2_amount
                     FROM  tab2
                     WHERE prod_id = 'yyy'
                     GROUP BY trunc(connect_date)
                  )
    SELECT  dmy,
            balance_cf + sum(topup_amount - usage1_amount - usage2_amount) over order by dmy rows between unbounded preceding and 1 preceding) balance_cf
            topup_amount,
            usage1_amount,
            usage2_amount,
            balance_cf + sum(topup_amount - usage1_amount - usage2_amount) over order by dmy) balance_bf
      FROM  DATES D LEFT OUTER JOIN TOPUP T ON (D.DMY = T.DATED)
                    LEFT OUTER JOIN USAGE1 U1 ON (D.DMY = U1.DATED)
                    LEFT OUTER JOIN USAGE2 U2 ON (D.DMY = U2.DATED)
      ORDER BY dmy
    /
    

    SY.

  • How can I write the SQL query for this requirement?

    Hello

    I have a table that looks like this:

    NAME | ANNUAL |     VALUE
    ==== | ====== | =====
    execno |     480.     000004
    step |      480.     0400
    SCNA |     480. cd_demo
    System |     480.     D47-010
    type |     480.     step
    free_text |     480.     stage 400
    rbare |     480.     RBA-1
    execno |     482. 000004
    SCNA |     482. cd_demo
    System |     482.     D47-010
    free_text |     482.     step 300
    step |          482.          0300
    type |      482.     step
    rbare |     482.     RBA-1
    execno |     483.     000001
    type |     483.     step
    rbare |     483.     rke1
    SCNA |     483.     rke10
    step |     483.     0240

    Now, say that I want to fetch ONLY annual with execno = '000004' and '400' = step and scna = "cd_demo" and system = "d47-010' and type = 'step', how to write SQL code?
    At first, it seemed like a simple writing query but I've been struggling with it for hours without success. I must admit though that I'm not strong in SQL :-)
    There, can anyone help? Please...

    Thanks in advance.

    Emmanuel

    Published by: user12138559 on October 30, 2009 03:05

    Hi, Emmanuel.

    Welcome to the forum!

    Here's a way to do what you asked:

    SELECT       doc_id
    FROM       table_x
    GROUP BY  doc_id
    HAVING       SUM (CASE WHEN name = 'execno' AND value = '000004'  THEN 1 END) > 0
    AND       SUM (CASE WHEN name = 'step'   AND value = '400'     THEN 1 END) > 0
    AND       SUM (CASE WHEN name = 'scna'   AND value = 'cd_demo' THEN 1 END) > 0
    AND       SUM (CASE WHEN name = 'system' AND value = 'd47-010' THEN 1 END) > 0
    AND       SUM (CASE WHEN name = 'type'   AND value = 'step'    THEN 1 END) > 0
    ;
    

    If you think that a WHERE clause would be used, but WHERE does apply to a single line. You need a condition that checks several rows in the same group.
    WHEN has an effect something like WHERE.

    Published by: Frank Kulash, October 30, 2009 06:26

    This solution assumes that (name, annual) is unique.

  • Two part question: 1 How can I write a script for long Division, 2. How can I make my form?

    1. I have a field where I need to write a formula for a division problem: (power/population) / 365.  When I use the simplified field notation I get an error: the entered value does not match the format field.  I want the answer as a number with no decimal point.  If I format the field to 'no format' I don't get an error message but the answer comes with up to 10 digits after the decimal point.  I'd rather have the answer in integer without figures after the decimal point.  How can I write this in the custom calculation script?

    2. on accessibility - I never checked on the display/a Mode and unlocked the Acrobat/PDF compatibility.  Some users do not have a problem by filling out the form, but others are not allowed to fill that PDF/A is enabled for their document.  Is this something on their end?  Or is it something on my end blocking them?

    If you multiply by 100, it appears correctly. But if you need to retain the value of the field, you need to use a script to Format custom instead. If you need help, post again.

  • Arabic font, it is not written in the correct way alphbet is not connected and he writes from left to right.  How can I solve this problem?

    Arabic font, it is not written in the correct way alphbet is not connected and he writes from left to right.  How can I solve this problem?

    CS6 and below: How to access the features of Arabic and Hebrew in Photoshop CS6 - YouTube

    Creative cloud. CC to CC 2015:

    First install the value in the parameter of English/Arabic language: change the language setting of your Cloud Creative applications

    Then enable Middle Eastern features in Photoshop: How to write in Arabic in Photoshop CC (and other adobe programs)

    I would like to know if it works.

    Gene

  • Lately on the Web, pdf files are not correctly; What is the problem and how can I fix this so I don't have to use IE?

    I am a teacher and often need to open the PDF files of academic electronic databases of journal articles. In the last two or three weeks, when I try to do it using Firefox, only the first page of the pdf display and the rest are empty. In addition, a bar appears in the upper part with the message "this pdf file cannot be displayed properly." So I had to switch to Internet Explorer to open files and do my research. What happens and how can I fix this problem so that you can open PDFs from the Web in Firefox and ask them to work correctly?

    Hello, firefox 19 introduced its own Viewer integrated pdf - if you want to switch it to the plugin you used before displaying a PDF file just go to the firefox options > applications and scroll down and set the default action for the portable document (pdf) format.

    How to disable the built-in PDF Viewer and use another Viewer

  • I have a micro cell phone memory card, I'm trying to delete files MPG and it says that the disk is write-protected, how can I disable this?

    I have a micro card.  I used to put photo files.  Today I'm trying to remove them and I get a message that the card is write protected.  How can I disable this?

    I guess you put the micro card in full-size SD card reader? Look on the side of the SD card. There is a small switch that is write protected. Put it to the other position.
  • How can I fix this. REG QUERY "HKLM\SOFTWARE\Microsoft.

    HELP... Can someone please tell me what this means and how can I fix. REG QUERY 'HKLM\SOFTWARE\Microsoft NT\CurrentVersion\AppcompatFlags\UpgrapeExperienceIndicators' / v UpgEx: finderstr UpgEx ERROR: the system was unable to find the specified registry or the value key.

    How does this relate to the features of Windows Update (or recovery)?

    Did you mean "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\ExperienceIndicatorsUpgrade... » ?

    Is this a computer Win7 Pro or Ultimate?

    Is this the same computer (not the same problem) in one or two of these previous discussions of yours?...

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-windows_programs/Windows-feature/3dd93b2b-0500-4173-9e96-10021973d79d

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-update/install-updates/b1307f0b-cef4-48C6-a9f5-68063c270d0b

  • Bought more Adobe Photoshop CS on Amazon with the key! What it will not accept my registration SR #. How can apply me this correctly!

    Bought more Adobe Photoshop CS on Amazon with the key! What it will not accept my registration SR #. How can apply me this correctly!

    CS? or CS3: CS6?  If this is the CS, it is worthless.

    The CS/CS2 activation servers have been removed. Download CS2 and use the new number given to the right of the download link.

    ml https://helpx.adobe.com/x-productkb/Policy-Pricing/Creative-Suite-2-activation-end-Life.HT

  • Purchased 8 a window PC, reinstalled Photoshop 5.5 on my PC, went to download updates and had a message saying download failed – repeatedly.  How can I get this corrected download problem?

    Purchased 8 a window PC, reinstalled Photoshop 5.5 on my PC, went to download updates and had a message saying download failed – repeatedly.  How can I get this corrected download problem?

    If you mean CS 5.5, the updater no longer works. You must make a list of what needs to be updated or that update failed and go here to download and install them manually.

    Updates Photoshop, Bridge and so on for Windows.

  • How can I perform this type of beach using DPL join query?

    How can I perform this type of beach using DPL join query?

    SELECT * from t where 1 < = t.a < = 2 and 3 < = t.b. < = 5

    In this pdf file: http://www.oracle.com/technology/products/berkeley-db/pdf/performing%20queries%20in%20oracle%20berkeley%20db%20java%20edition.pdf,

    It shows how to perform "Two motion equal on a single primary database" like SELECT * TAB WHERE A = col1 AND col2 = B using the join entity class, but it does not give a solution on the range join query.

    Right, you can only use an index for this query. If you do not need another index for another query, you might fall (remove @SecondaryKey).

    -mark

  • If I have floating values such as 6.3 6.7, 6.9, 7.1, 7.2, how can I write a case statement to handle this

    How can I write a case statement if I want a case for x< 1.5;  ="" a="" case="" for="" 1.5=""><= x=""><= 3.7; ="" case="" for ="" 3.7="">< x="">< 7.2.....etc.  ="" my="" input="" is="" a="" floating="">

    Thank you.

    You don't seem to have set rules on inclusion, but I often use the function in the range and Coerce in these cases.

Maybe you are looking for

  • iTunes does not work after upgrade to 12.3.3 using Win 7

    After that I upgraded my iTunes to 12.3.3 he did not work at all. I tried to uninstall and reinstall. I get this error message... Signature of the problem: Problem event name: APPCRASH Application name: iTunes.exe Application version: 12.3.3.17 Appli

  • A1225 IMAC

    My A1225 IMAC drive crashed without any backup to restore to and no original OS, what operating system can I buy on Apple store to do the installation... I have another BONE that won't let me install on this machine... any help please? Here are the s

  • DVD/cd does not

    Equip the new CD to play does nothing that the reader does not appear in MY COMPUTER How can I solve this problem...

  • Windows Movie Maker Vista

    I have 4 videos of September I want to include on 1 DVD.  I also want to have every video available from the main menu, so people can pick and choose who they wish to watch.  Is there an easy way to do this?  Also, is there a way to put the chapters

  • Service plugin for WebWorks 2.0.0.54 pressure (Cordova 3.2)

    Hello! I'm trying to use the plugin Service Push in my application. I've added the plugin through the command line and verified that the com.blackberry.push file was infact in my plugins folder in my project. I ran the app on my phone, and the Web In