Grep can find duplicates in a list to resolve the upper/lower case differences?

The idea is to isolate the info. Any grep that lead to these results will solve the problem. Thank you.

current list

option 1

option 2

option 3

Halogen

Halogen

Halogen

Halogen

Halogen

Halogen

thebaica

That's why

That's why

them

That's why

That's why

them

they

they

That's why

They

They

That's why

thermal

These

they

They

thin

I hope it will be clear. Maybe I have complicated the issue, but I do it quickly.

1 / I have apply the condition 'All' to the whole text.

2 / I apply a style of tank "Capitals", so that I can convert all lower case (see menu ID).

3 / first Regex [for Option 1] (I forgot the screenshot):

in French:

Search for: ^(.+\r)\1+

Replace by: (Nothing)

Replace the format: Select condition "Option 1".

4 / 2nd Regex [for Option 2]

4 / 3rd/4th/5th Regex [for Option 3 - in 3 steps]

5 / 6th Regex: I remove all the text with condition 'All '.

6 / now we have only the text of the conditions Option 1/2 and 3 (see colours).

7 / If you wish, you can remove the 3 conditions:

FACT!

I use a lot with Grep Conditions have the options us! More complex but more fun!

Tags: InDesign

Similar Questions

  • Script to find duplicates in a row and combine the data in specific column

    Looking for a script to find duplicates in a line like below...

    "VM1', 'VM', 'LDEV', 'LDEV1', 'LDEV2', 'LDEV3', 'LDEV4', 'LDEV5', 'LDEV6 '.
    'VM', 'VI-SVC-VM001', "0000ef ', ' '," "," "," "," ""
    'VM', 'VI-SVC-VM001', "0000de ', ' '," "," "," "," ""
    'VM', 'VI-SVC-VM002', "0000df ', ' '," "," "," "," ""
    'VM', 'VI-SVC-VM002', "0000f0 ', ' '," "," "," "," ""

    .. .and manipulate the data in the following:

    "VM1', 'VM', 'LDEV', 'LDEV1', 'LDEV2', 'LDEV3', 'LDEV4', 'LDEV5', 'LDEV6 '.
    "" 'VM', 'VI-SVC-VM001', '0000ef', "0000de ', ' ', ' '," "," ""
    "" 'VM', 'VI-SVC-VM002', '0000df', "0000f0 ', ' ', ' '," "," ""

    (Note: VM VI-SVC-VM001 object has two LDEVs him assigned 0000ef and 0000de)

    There may be two, three, or n LDEVs attributed to each VM object. I guess I have to build a table and the "join-collections" script can't cut it on this one.

    I have the process to follow, I just need to put it in a loop (note, data already sorted on the virtual computer object):

    1 import-csv

    2. read each line, matched VM object, copy each found LDEV and place it in the next LDEV along

    3. remove the duplicate line

    4. rinse, repeat until the end

    Thank you.

    It's a solution pleasant Luc. I didn't use the Group-Object cmdlet to solve this problem.

    Now I can go to sleep without having to worry about this problem more.

  • find duplicates by using multiple criteria in the field help...

    I have a Table and I want to choose the following fields


    Cust_id, number
    BANK number
    CONNECTION_TYPE, varchar2 (the client A between the sexes, B or C)
    STAMP_DATE varchar2 (example 072010) or MMYYYY not a real stamp Date/time


    Basically, if the CUST_ID appears twice, it's ok, as long as the CONNECTION_TYPE is not the same.

    So I need to find duplicates on CUST_ID, with the CONNECTION_TYPE being same.

    It would be nice:
    9122222     326     1      102010
    9122222     326     2      082010
    This would not be permitted:
    9122222     326     1      102010
    9122222     326     1      082010
    That's what I used, but I can't understand how to add the second condition for CONNECTION_TYPE:


    Select cust_id, stamp_date, connect_type
    from Table1
    where cust_id in

    (select cust_id
    from Table1
    Group of cust_id
    view count (cust_id) > 1)

    order of cust_id;

    Thank you.

    Try this

    WITH TABLE1 AS (
        SELECT 9122222 CUST_ID,     326 STORE,
              '1' CONNECTION_TYPE,      '102010' STAMP_DATE from dual union all
        select 9122222,     326     ,'2',      '082010' from dual union all
        SELECT 9122222,     326,     '1',      '082010' FROM DUAL
    )
    SELECT CUST_ID, STORE, CONNECTION_TYPE, STAMP_DATE
    FROM (
        SELECT T1.*,
               COUNT(*) OVER ( PARTITION BY CUST_ID, STORE, CONNECTION_TYPE ) X
        FROM TABLE1 T1
    )
    WHERE X > 1
    ORDER BY cust_id;
    
    CUST_ID                STORE                  CONNECTION_TYPE STAMP_DATE
    ---------------------- ---------------------- --------------- ----------
    9122222                326                    1               102010
    9122222                326                    1               082010     
    
  • I can't find either (hidden) icon by clicking on the upper right of the screen information desk.

    I clicked on something then that check my box info icon on the desktop (the one hidden until you click in the upper right of the screen) and all my icons of the screen disappeared.  also i can't find the info from the desktop icon box by clicking in the upper right of the screen.  How to return all icons without having to go through each program individually and by acquiring an icon.  also - how can I re - get the box of info icon in the upper right.

    Hello
    If you right-click on the desktop, then choose "rearrange icons by" and then put a check mark to 'See the desktop icons' that fix things?

    By "information of the desktop icon box" do you mean options such as
    Rearrange icons by
    Discount
    New
    Properties?

    Don

  • Logic Analyzer can find if there is a problem with the motherboard or the processor of alaptop?

    Hello

    I read on Logic Analyzer once.

    now my question is you can use Logic Analyzer to see if the motherboard is the processor or defect is failure to laptop?

    is there any advantage therefor.

    Thank you

    Johan

    Hello

    Logic analyzers have advanced abilities trigger and are useful when a user needs to see the synchronization relationships between the many signals in a digital system.

    Logic analyzers can discover material defects that are not in the simulation.

    CPU, RAM and card mother troubleshooting

    http://www.ehow.com/way_5770397_cpu-RAM-motherboard-troubleshooting.html

    Troubleshooting, CPU, RAM and card mother Performance

    http://www.ifitjams.com/ram_cpu.htm

  • When I open a tab/icon on my computer is much too large for my screen and I can't use my computer; 3 boxes in the upper right corner.

    When I open a tab/icon on my computer is much too large for my screen and I can't use my computer; 3 boxes at the top right corner with the-, square and X are too far to the right to do anything. How can I fit on my screen, so I can use my computer?

    Hello

    Please contact Microsoft Community.

    This problem is limited to any icon or it happens with all?

    Did you change to the computer?

    I suggest to refer to the following methods and check to see if it helps:

    Method 1:

    Install the latest display driver and check

    Uninstall the driver from Device Manager display.

    a. close all programs. This will ensure that the programs do not interfere with the update of the driver.
    b. right-click on my computer, and then click Properties. This will bring you from the System Properties menu.

    c. click Device Manager
    d. expand the display column of cards by clicking on them. This will show the graphical current map that is using your computer.
    e. right click on the adapter, then select Properties.
    f. click on the driver tab. This tab displays information about the current driver, as well as options to update, delete, uninstall, and back the driver.
    g. click on uninstall
    h. restart the computer

    You can install the latest display driver for download on the site of computer manufacturing, same driver will reinstall automatically after the restart, if the computer is connected to the Internet.

    Method 2:

    I suggest you try the system restore. Restore the system to a restore point when your computer was working fine

    You can also check the Device Manager to see if the video card has a yellow exclamation on it with an error any:

    http://Windows.Microsoft.com/en-us/Windows7/products/features/device-management

    I hope this helps.

    Kind regards
    Anusha

  • History can find prerequisites: or style list used in Bing?

    Search history page: redecorated in Bing

    Can we change it back to original?   _ OR: a list column can be added to the page, so prior research are quickly found?

    Hello

    At the top of the Bing page put the mouse on the search history or Double click on Search History
    to learn more.

    For more information, see these resources:

    Bing Forum
    http://www.bing.com/community/f/

    Bing - Explorer
    http://www.bing.com/explore

    Bing - Feedback
    https://feedback.DiscoverBing.com/default.aspx

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • GREP which finds content in brackets which happens at the end of a paragraph.

    I'm trying to troubleshoot this GREP that detects the content in brackets when the parentheses closing is at the end of a paragraph.

    That's what I have, but it does not work:

    (?<=\().*? (?=\)) $

    I want it to find: (Mauris 33: 3) but not (Phasellus ac nigh) in the example below:

    Lorem ipsum dolor sit amet, adipiscing elit computer. CRAs ac diam tellus. (Phasellus ac nigh) pharetra, vehicula nisi, ultrices magna. (Mauris 33: 3)

    Thank you.

    (?<>

  • How can I validate a dropdown list NOT accepting the default value?

    I have a fillable form where I need the user to select their "number of employees". I've added several lines as their options in a drop-down list (1-10, 11-25, 26-50, 50 +). My question is "defult value" is set to "1-10" and people submit it without changing the correct value.

    I changed the value for default "-select -", but it allows them to always submit the form with the value entered.

    I guess I need some sort of validation script that will basically say - "If the value of this field is - select one - do not submit the form, but give an error that says 'Please select your number of employees' or something of the sort."

    Basically I just want what they choose something as opposed to just submit it with the default value.

    I looked everywhere and am not very good with JS.

    You can't have the default set to a possible real value. You need a value that must be selected.

    So for your sending script, you will need to test all your required fields to make sure that they are not at the default value.

    You make a variable that assumes that all required fields are filled and then check each field and if one still has the default value that you set your variable to 'false' and then when you have verified all of the fields that you test the value of the variable and only if she is true to send you the form.

    var bSumbit = ture; logical variable for test submission

    Test menu drop-down # of employees

    this.getField ("number of employees".). required = false; Disable the required property

    If (this.getField ("number of employees"). value == "-select one - ') {}

    Determine = false;

    this.getField ("number of employees".). required = true; Set the required property

    }

    {if (bSubmit)}

    your submit acation;

    } else {}

    App.Alert (' not all required fields completed", 0, 1);

    }

  • 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)"

  • LabVIEW can find location of row/column selected in the open worksheet?

    Instead of asking user to LabVIEW manually to input data (location of the row/column you want for data entry in the spreadsheet open), can read LabVIEW that the location of the row/column selected in a worksheet open, selected by the user?

    If so, LabVIEW now has a starting location for the user to launch inputing data without having to ask the user LabVIEW!

    Any ideas on how to achieve this would be very appreciated!

    Thank you!

    Barry

    For what you want to do here, read and write in the cell current.  This example shows you the basics...

    Example of NOR

  • I use lightroom six. My problem is some of my photos have several purple lines across them and can find a way to get rid of the.  The camera I use is a fujifilm X100T.  I tried different software and the problem is not there.  so I Don t

    Some of my photos have a purple line which passes through.  I use Lightroom six, but had the same problem with the previous version.  I tried different software and do not have the same problem, so I don't think that the problem is with the camera.  The camera is a Fujifilm X100T.  Any idea?

    Purple lines on the photo almost always indicate that some piece of hardware caused a corruption of file. It could be any piece of equipment in the transmission of the record of the caard of the camera to the computer. One obvious thing you can try is to move the photos to the computer via a USB drive / different to different cards. If possible, you can try to copy the photos to a different computer and then import into Lightroom. Run diagnostics on your hard disc controls and the memory of the computer.

    Other software may display the file does not cuorruption, but it is usually display the preview JPG that is embedded in the RAW file, and this JPG preview is very often very well when the image RAW itself is corrupt. So the fact that else sofrtware shows not only the problem is irrelevant.

  • I had dinner all the stuff I can find, but my new iPad pro drains the battery 1-2minuts life ever? Please help me I have no idea

    Ive had only my iPad pro for a few days now and the battery just drains constantly 1% every minute or so. I read online and have turned some triggering and cool off apps, Bluetooth off exe... My iPad pro always drains battery life bad... I use it constantly or the other, it could be on the home screen and I do nothing and in a minute or two 1% of the battery has been drained. I'm just bummed on this subject because Apple boasted of a battery life of 10 hours and going at the pace my battery, I'll be lucky to get an hour or two. I would greatly appreciate all constructive comments on this.

    Have you tried a reset of your iPad by pressing the sleep/wake and Home buttons simultaneously until your iPad goes to black and restarts with the Apple logo and then release the buttons?

    Good luck!

  • How can I remove a title that appears in the upper right of my TV when you play AirPlay of Safari?

    So, I made a video for my in-laws some time ago, named "Dryland Organics, 2016" (just of images with a soundtrack of Bumblebee) and to test how it would look, I Mirroringand the generated m4v file in my ATV4, which, for some, reason to put an overlay of the title for a few seconds with the title of the video. I don't think much.

    Now however, whenever I have any video AirPlay out of my computer or my wife, it shows as such, it doesn't matter which video or its source, it's just overlays "Dryland Organics, 2016" at the beginning, every time.

    How can I remove that?

    I can make a video if the problem is not clear.

    Thank you!

    Have you tried restarting the Apple TV and iTunes on the computer and try again.

  • How can I resolve the error "the volume has the bad upper/lower case distinction for a backup."?

    It seems that Time Machine requires a case-sensitive file system.

    Answering my own question here:

    Volume must be formatted to be case sensitive if you want to use with Time Machine:

    • Mac OS extended (case sensitive), journaled

    If it has been formatted with case-insensitive (default) option, it must be reformatted.

Maybe you are looking for

  • Pavilion p6-2022uk: graphics card update

    I want to upgrade the graphics on this desktop computer to allow playback of some games. Because of the limited space in the PC case an Asus Nvidia Geforce GT740 seemed to be the best choice. When mounted, after activating the VGA in the BIOS, everyt

  • Digital control switch

    In order to control the number of cells in a column chart, I need a control switch that can choose between the numbers for example. 2048, 1024, 64, 128 and 256, 512. Is there a switch of LabView or vi for this action?

  • fixing corrupted files

    I have files that corrupted windows repair cant y at - it another auditor of files other than windows, I can use to get rid of them.

  • Contacts disappear

    Hello I just got the Sony Xperia Z3 a week ago. First time using Android. Happy so far. But there is a serious problem: my contacts several times all just disappeared from the phone. It happened again just now. I clicked on the icon for contacts, and

  • How to find the password I put in place with my account Windows Mail I use Windows Vista... I know... I'm terribly late. Thank you

    Hi - I am using Windows Mail on Vista Home Premium; I set up my email long ago and have no idea what my password is... all the usual suspects do not work.  How can I know what it is - and / or get a new password without knowing the old... Thank you!