Try to use GREP to truncate the names of some of the words...

Hello

I'm trying to find a way to GREP to select all the text strings that looks like this:

12345678wieawoejfoiaw.jpg

65434546wieawoejfoiaw.jpg

23542398wieawoejfoiaw.jpg

90989098wieawoejfoiaw.jpg

23234567wieawoejfoiaw.jpg

24326743wieawoejfoiaw.jpg

and leave (replace) with just the first 8 numbers each find string.

I remember something similar awhile back, when I break the type in some parts (such as numbers or characters and then go and get them back for the part to replace it, but I paint a white...)

None of my friends GREP autour?

Babs

Top of me head * but something like this should do the trick.

Search

(?<>

and replace them with nothing. We find everything on a single line that starts with 8 digits but 'brand' only non-digit so paragraph, you can replace safely with nothingness.

You've probably used a simpler variant before, as

^(\d{8}).+$

Replace with the first expression in parentheses, '$1', but mine should be more favorable to the document because it only removes and needs no more than absolutely necessary tocuh.

* Holler if it does not work.

Tags: InDesign

Similar Questions

  • Try to use GREP to identify the beginning of a paragraph

    I want to apply a character style to the first sentence of a paragraph. The challenge is that these are not always traditional phrases. They may begin with a decimal point or a number. Here are a few examples.

    7.25 "bracelet diamond accent. Sterling silver. Reg. $340
    Would that the character style applies to "7.25" bracelet diamond accent. »

    .04 CT tw. Bracelet bracelet of diamonds to shine. Sterling silver. Reg. $720

    Would the character style applies to '04 CT tw. Bracelet Diamond by sparkle bracelet. »

    Diamond accent earrings. Sterling silver. Reg. $120

    Would the character style applies to "diamond accent earrings.

    I used [\l\u\d\.], but which apply the character style to too much text. I added the ^ at the beginning of the code, but that do not accomplish what I want to do, either.

    Thanks in advance for any ideas on that.

    Or this one: ^. +?. ( ? =\s\u)

    (from the beginning of the first paragraph point which is followed by a space a capital).

    Peter

  • When you try to use windows media player, the wmploc.d11 file has a version number of 11.0.6002.18311 where to 11.0.6002.18111.

    When you try to use windows media player, the wmploc.d11 file has a version number of 11.0.6002.18311 where to 11.0.6002.18111.

    The following article is maybe worth a visit:

    (961047) WMP update after you one
    wmploc.dll on version error
    wrong number
    http://support.Microsoft.com/kb/961047

    Failure to solve the problem... and if you
    are comfortable editing the registry... it
    may be worth a try to remove the following text
    Registry keys:

    (FWIW... it's always a good idea to create a system)
    Restore point before editing the registry)

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MediaPlayer\Setup\wmp.dll
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MediaPlayer\Setup\wmploc.dll
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MediaPlayer\Setup\\wmplayer.exe

  • Photoshop CS6 using javaScript to truncate the name of the alpha channel

    Hello

    I am a production artist and I work with PSD files created in Adobe Scene7's Image Authoring Tool. These PSD files contain a background as well as the alpha 1-20 layers layer. My script should make a new empty layer for each alpha channel in the document. He then fills the new grey layer. So far, my code accomplishes this mission. However, I would like to apply the alpha channel of the layer name, but I need the name will be truncated. Each alpha channel begins with one or more characters, followed by a bar backslash and then ends with one or more characters. Here is an example:

    An alpha channel can be named: Floor\floor

    In this example, I need my name of layer to be fair: floor. This means that all characters to the left of the backslash, including the backslash itself needs to be scrapped. I used the subSring() for this statement. When I try to step through the code line by line in ExtendScript, I immediately get an error that says no complete string constant and line 31 of my code is highlighted. I think that he doesn't like the way I wrote the backslash character, although I have it surrounded by double quotes to define it as a string.

    Can someone tell me why I get this error?

    Here is my code with a lot of comments to guide you through the process. I wrote where the error occurs in red characters.

    I'm new to JavaScript, so I'm not sure that my while loop is accurate.

    #target photoshop

    #target photoshop makes the script execution in PS.

    declare the variable to contain the active document

    var myDoc = app.activeDocument;

    declare the variable to hold the number of alpha channels, excluding the RGB layers

    var alphaChan = myDoc.channels.length - 3;

    Alert ("alpha channels exist" + alphaChan);

    create a loop to make new layers depends on the number of channels alpha, fill layer with gray and apply the name of alpha channel to the new layer

    for (a = 0; a < alphaChan; a += 1) {}

    make new Virgin layer

    myDoc.artLayers.add ();

    fill empty layer with gray

    var color = new SolidColor();

    Color.RGB.Red = 161;

    Color.RGB.Green = 161;

    Color.RGB.Blue = 161;

    myDoc.selection.fill (color);

    variable stores the name of the alpha channel

    var alphaName = myDoc.channels [3 + a];

    variable stores the length of the name of alpha channel

    var lz = alphaName.length;

    declare the index variable to initialize the character position 1 the name of alpha channel

    var x = 0;

    truncate the name of the alpha channel by removing all characters preceding the symbol "\".

    While (alphaName.subString (x)! = ' \ ') { (ExtendScript gives an error for this line and highlights the backslash and surrounding quotes) }

    alphaName = alphaName.subString ((x+1), z);

    x += 1;

    z = 1;

    Return alphaName;

    }

    remove the backslash in name of alpha channel

    alphaName = alphaName.subString ((x+1), z);

    apply name truncated to the corresponding layer alpha channel

    myDoc.artLayers [a] .name = alphaName;

    }

    While (alphaName.subString (x)! = ' \ ') {}

    should be

    While (alphaName.subString (x)! = ' \ ') {}

  • Error 150:30 when you try to use an application for the first time after installation

    I have CS 5.5, but need to temporarily install the suite CS4, but when I try to use it after installing a pop-up windows is displayed with the message "Error 150:30" and ask me to restart my computer before using it. I'm sure that there is only one computer using my serial number, but when I try to proof on a second computer it tells me that the serial number is enabled in both computers already.

    Hello

    Error 150:30 refers to licensing. You must contact customer service and verify the number of activation of your software. If it's good, then you can follow these steps as appropriate for your operating system:

    http://kb2.adobe.com/cps/512/cpsid_51260.html for MAC OS

    http://kb2.adobe.com/cps/405/kb405970.html for OS WIN

    I hope this helps.

  • Why do I get an error when you try to use a link in the forum?

    I just tried to use the link that city offered to redirect some users with the login procedure and I got an error:

    The thread specified [0] was not found.

    I had the same thing when you try to use a similar connection a few days previously. They sound like something that I could benefit from it, but I can't ' get to them.

    The URL looks like to Re: logon username determines the page that opens, how can I achieve this?

    Any ideas?

    Thank you

    Gregory

    P.S. I'm using Firefox 3.0.4

    Yes, if you delete the character of diamond, you are directed to a thread in the APEX support forum...

    Thank you

    Tony Miller
    Webster, TX

  • Try to use regular expressions to convert names in title case

    I'm changing name to their appropriate case of the most common names in North America (especially the United States).
    Some examples are in the comments of the code provided below.
    My problem is that * retName = retName.replaceAll ("([^]) ([^] +)", "$1".toUpperCase () + "$2" ""); * does not work as I expect. It seems that calling toUpperCase method actually doesn't do anything for the identified group.
    Everything else works as I hope.

    I hope I did not browse through each character of the string, mounted the characters that follow the spaces.

    All your RegEx expert help will be appreciated.

    {code}
    /**
    * Converts names in some random case in name business. This method does not have the
    * additional processing that would be required for the conversion of addresses.
    * This method does not add or remove punctuation.
    *
    * Examples:
    * DAN MARINO-> Dan Marino
    ' * old macdonald--> Old Macdonald & lt;-can capitalize it had "because of Ernst Mach
    * ROY BLOUNT, JR.-> Roy Blount, Jr.
    * CAROL mosely-BrAuN-> Carol Mosely-Braun
    * Tom Jones-> Tom Jones
    * ST. LOUIS-St. Louis >
    * ST. LOUIS, MO-> St. Louis, Mo & lt;-avoid the names of cities and State Codes
    *
    * This is a work in progress that will have to be updated of new exceptions being proven.
    */
    public static String toNameCase (String name) {}
    /*
    * Basic plan:
    * 1. Strategically creating spaces double face of characters to capitalize
    * 2. Take advantage of the characters with whom the above spaces
    * 3. Remove double spaces.
    */
    The string all lowercase
    String retName = name.trim () .toLowerCase ();

    Chains of collapse of spaces for simple spaces
    retName = retName.replaceAll ("[] +","");

    names of 'mc '.
    retName = retName.replaceAll ("(mc) ', '$1'");

    Ensure that there is a space after periods and commas
    (retName_=_retName.replaceAll("(\\.|,) (^)", "$1 $2");

    Add 2 spaces after points, commas, hyphens and apostrophes
    (retName_=_retName.replaceAll("(\\.|,|-|') ', '$1');

    Add a double space in front of the chain
    retName = "" + retName;

    MECHANISM of each character is preceded by a space
    For some reason that it does not work
    retName = retName.replaceAll ("([^]) ([^] +)", "$1".toUpperCase () + "$2" "");

    Remove double spaces
    retName = retName.replaceAll ("", "");

    Return retName;
    }
    Edited by: FuzzyBunnyFeet on Jan 17, 2011 10:56 AM
    
    Edited by: FuzzyBunnyFeet on Jan 17, 2011 10:57 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                

    It looks like you want the equivalent to Java

    echo -e "DAN MARINO\nold macdonald\nROY BLOUNT, JR.\nCAROL mosely-BrAuN\nTom Jones\nST.LOUIS\nST.LOUIS, MO"|perl -pe's#\b(\w+)\b#\u\L$1#g'
    

    Unfortunately, the implementation of Java does not support

    The pre-treatment operations \l \u, \L and \U.

    http://download.Oracle.com/javase/6/docs/API/Java/util/regex/pattern.html#JCC

  • Table filters break when using of text with the words "AND" or "OR".

    With the help of JDev 11.1.1.3.0

    Hello-

    The filters in the table seem to treat the words 'and' and 'or' differently when they are used in the filters in the table. Is it possible to change this behavior? I have a few sets of data where these words appear in the data. When the user performs a search on the data and uses the words 'and' or 'or' the filter no longer works. (He returned lines nil or returns all the rows.)

    Test case:

    1 create a filterable unalterable for the resources table. DEPARTMENTS table.
    2 set the Department name column to be case insensitive in its filtering:
                  <af:column sortProperty="DepartmentName" filterable="true"
                             sortable="true"
                             headerText="#{bindings.DepartmentsView1.hints.DepartmentName.label}"
                             id="c2" filterFeatures="caseInsensitive">
                    <af:outputText value="#{row.DepartmentName}" id="ot4"/>
                  </af:column>
    3. run the page.
    4. in my HR. Data REPRESENTATION, there is a service with the name "control and credit." In the service name filter, type
    a. 'control' and press ENTER - service of "control and credit" only comes
    (b) "control and" and press ENTER - only 'control and credit' Department appears
    c. 'control and credit' and press ENTER - ZERO departments appear.

    5. the Test cases for "GOLD". In the service name filter, type
    a. 'or' and press ENTER - displays all departments.


    I tried a few other words SQL in the filters but only 'AND' and 'GOLD' seems to break things.
    Is this a known bug?
    Is there a solution?

    Thank you for reading my question

    The list of documents http://docs.oracle.com/cd/E21764_01/web.1111/b31974/web_search_bc.htm#BABCCBCF 'AND' and 'GOLD' as 'Operators of Query-by-Example search criteria' are not text but the operators.
    You can try to join the text in the filter with single or double quotes and see, is that it treads in the form of text.

    Timo

  • BlackBerry Smartphones Firewall error when you try to use new applications of the AppWorld

    I have a BB "BOLD" (out of business).  When I try to register accounts with new App World, as SlackerRadio applications, I get this message:

    "The request... a attemtped to open a connection to a location inside the firewall and outside the firewall which is not allowed by your policy."

    Because I don't have a BB company, I'm not aware of any it policy or how I can adjust.  Everyone is having these issues?

    Thank you

    Jacquie

    • Carrier: AT & T
    • BlackBerry model: "BOLD"
    • BlackBerry OS (can be found in Options-> on): v.4.6.0.167 (Platform 4.0.0.157)
    • Version of App World (can be found by going to Options-> Advanced-> Applications) 1.0.0.28
    • BIS or BES (personal use or business use): BIS

    JacquieSamples,

    Just to be sure your BlackBerry is not a test of policy COMPUTER looking in Options-> Security-> General settings and scroll down to see if there is anything that is listed next to the field name of the IT strategy, if you see something there default even you have a COMPUTER policy.

    This article also shows how to reset a firewall prompt, you can have on your device:

    http://www.BlackBerry.com/BTSC/KB04050

    Please let us know if this solves your problem.

  • ORA-17629: when you try to use database active for the construction of Eve

    Hey guys, I did research on it for hours and I tried different things but when even cannot get a handle of what Miss me...

    I'll try the 11 g physical creation Eve to help "...". of the active database"instead of the old way. I keep running into a brick wall. Any help would be appreciated.
    DB version is 11.2.0.2 on AIX

    This is what has been done...
    1 created pfile on primary and standby
    2 created orapwd file and transferred to the standby
    3 standby db is nomounted (startup nomount) and listener is running

    cemabc_p = main forum nom_unique
    cemabc_s = unique name of instance eve

    im commands running in mode ensures:
    RMAN target backup_admin/temabc@cemabc_p catalog rman/qaabc@rmnabc

    AUXILIARY backup_admin/temppw@cemabc_s connection
    RMAN > DUPLICATE TARGET DATABASE BEFORE database NOFILENAMECHECK active;

    From February 22, 13 Db double
    allocated channel: ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: SID = 7 type of device = DISK

    content of Script memory:
    {
    backup that copy reuse
    TargetFile ' / oracle/app/oracle/product/11.2.0.2/dbs/orapwcemabc' auxiliary format
    ' / oracle/app/oracle/product/11.2.0.2/dbs/orapwcemabc';
    }
    execution of Script memory

    From backup February 22, 13
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID = 112 type device = DISK
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Db in dual at 22/02/2013 14:53:52
    RMAN-05501: abandonment of duplicate target database
    RMAN-03015: an error has occurred in the script stored memory Script
    RMAN-03009: failure of the backup command on the ORA_DISK_1 channel at 22/02/2013-14:53:52
    ORA-17629: unable to connect to the remote database server
    ORA-17629: unable to connect to the remote database server



    What ive tried so far... I tried to connect from the primary database:
    adcabc1: / home/oracle/dba > rman target backup_admin/temabc catalog rman/qabc@rmnabc

    Recovery Manager: release 11.2.0.2.0 - Production on Fri Feb 22 14:52:51 2013

    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.

    connected to target database: CEMABC (DBID = 4229695208)
    connected to the recovery catalog database

    RMAN > catalog resync db_unique_name all;


    from full resynchronization of the recovery catalog
    full complete Resync

    from full resynchronization of the recovery catalog
    full complete Resync

    from full resynchronization of the recovery catalog
    full complete Resync



    Still no luck.
    I have cemabc_p and cemabc_s both primary and standby tnsping succuessfully.

    Im sure I'm missing a step, if it didn't there was more information need... Let me know

    Ok

    I guess that

    connected to target database: CEMABC (DBID=4229695208)
    connected to auxiliary database: CEMABC (not mounted)
    

    On the remote server's right? If so, it shows that RMAN was able to connect to the main server and the local static connection. So the problem is probably that the principal server cannot connect back.

    You need an entry for the CLONE in your TNSNAMES file. ORA on both servers. Can you confirm this?

    Can you post the listener.ora for clone entry?

    I'm double control it

    rman target backup_admin/temabc@cemabc_p catalog rman/qaabc@rmnabc
    

    (Above is odd)

    Mine:

    rman target=sys/@recover2 auxiliary=sys/@reclone
    

    I use SYS/password both for him to work.

    Also, make sure that these are defined

    listener.ora
    INBOUND_CONNECT_TIMEOUT_ = 120
    
    sqlnet.ora
    SQLNET.INBOUND_CONNECT_TIMEOUT = 120
    

    Restart the listeners later

    Best regards

    mseberg

    Published by: mseberg on February 22, 2013 15:10

    Published by: mseberg on February 22, 2013 15:11

  • Error message when you try to use Windows media Player: the wmploc.d11 file has a version number of 11.0.6002.18111 where 11.0.6001.708 was expected

    My windows media player all of a sudden started giving the message "the file wmploc.d11 has a version number of 11.0.6002.18111 where 11.0.6001.708 was expected.   It started just today and I used it OK so far.    He says then I would go on the site to download the correct version. I click Yes and then try to download windows media player 11 for vista, but it then tells me that this does not apply to my system.  Any help would be appreciated,

    Thanks in advance.

    My windows media player all of a sudden started giving the message "the file wmploc.d11 has a version number of 11.0.6002.18111 where 11.0.6001.708 was expected.   It started just today and I used it OK so far.    He says then I would go on the site to download the correct version. I click Yes and then try to download windows media player 11 for vista, but it then tells me that this does not apply to my system.  Any help would be appreciated,

    Thanks in advance.

    =====================================
    It might be worth a try to do a system restore
    Safe mode for one hour before the beginning of the question:

    Using Windows 7 or Vista System Restore
    http://www.howtogeek.com/HOWTO/Windows-Vista/using-Windows-Vista-system-restore/

    And/or... Maybe the article would be worth the trip.

    (961047) WMP update after you one
    wmploc.dll on version error
    wrong number
    http://support.Microsoft.com/kb/961047

    Volunteer - MS - MVP - Digital Media Experience J - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • When you try to use a link on the web or email that I get a refusal of connection message 'unavailable web' error 102 I have windows XP dell 4700C

    Error 102

    I used a clean for nothing does not program

    Impossible to get on a web link or email

    Hey inflation,

    ·        What browser do you use?

    ·        You did it changes on your machine before this problem?

    You can follow these steps and check if the problem persists.

    a. type the following command in the start menu > run box, and then press ENTER:

    Inetcpl.cpl

    The Internet Options dialog box appears.

    b. click connections > network settings > and uncheck use a proxy server for your LAN.

    c. click OK, and close the Internet Options window.

    Hope the helps of information. Please post back and we do know.

    Concerning
    Joel S
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • In Windows Defender, remove them, disable and enable buttons will activate not when I try to use them to manage the start up programs.

    I'm looking to speed up startup of Windows Vista.  I had used Windows Defender to disable startup programs.  It worked as described.  This time, delete, disable it and enable buttons would not activate or turn on when I chose a program to turn off.  Any suggestions?

    Defender is probably not necessary with McAfee...

    Both offer a real - time sweep and may potentially conflict with each other.

    You should never have more than one security product installed on the PC, providing active protection / scan. This can cause performance problems, system instability and conflicts between programs and can affect all installed antivirus product efficiency.

    Vista is historically a slow start... I have improved the startup of my Vista laptop with a reinstallation of the operating system, without installation of I-tunes (the computer was used by my daughter-in-law) and I added 1 GB of RAM.  It starts very well now.

    McAfee is known to adversely affect the performance of the computer - I him have not used for many years.  The last time that I removed McAfee from a slow computer, that it was like the addition of several gigabytes of RAM to view was an immediate performance improvement.  If your computer has a good processor (preferably bicoeur) and several GB of RAM must be able to run Vista (and McAfee) however.

    Good luck...

    http://www.AV-Comparatives.org/

    http://www.dslreports.com/Forum/r25776413-2011-anti-virus-poll

  • WTF? I'VE UPDATED AND PURCHASED PRODUCTS BY PHONE, BUT CAN NOT INSTALL CONFORMATION LINKS SENT? LINKS WANT ME TO PAY AGAIN? I TRY TO USE "CONTACT US" (IN THE HOPE TO GET A PHONE # OR AT LEAST AN E-MAIL ADDRESS TO SEE WHAT'S THE DEAL, BUT HE SAYS THAT)

    OK, I'm getting very frustrated. I have (and I do not remember how I did it) found a phone # to contact Adobe to ask what products I need to buy to be able to accomplish what I need to do. The gentleman on the phone told me that I needed and then I was ready to go there and order my products online; but the guy told me that he worked in the commission and would take care of my purchase right then. Good *! I received an e-mail of confirmation of my purchase and order # to get my Acrobat Pro purchase, but whenever I go and try to download PAY MY products, it sends me to the page to give them all my Info for method of payment... Now I can't find a phone number and an e-mail link to find out what the hell is the deal. Incredibly disappointed that the company of this caliber does solve an inexpensive order, but it's something they sell and I need, but when I click on "help / contact us" waiting to get a phone number or email for sure my situation, he tells me that my help is limited to F*#%*@g Forum help? I received the best little unknown freeware customer service sites then this $multi-billion company. I hope that they respond to this message, because I'm completely disgusted and I don't know that it's because I'm in the hotel industry, and this society needs serious help in this area.

    This is where buy you a subscription plans Adobe pricing and membership creative cloud | Adobe Creative Cloud

    -Subscription conditions https://www.adobe.com/misc/subscription_terms.html

    -Purchase of FAQ https://forums.adobe.com/thread/1926340

    -Special photography Plan includes Photoshop & Lightroom and Bridge & Mobile Lightroom

    I've never heard of a sales person Adobe working on commission... I think you called a wrong number and you have scammed

    I never called him, but a number I've seen mentioned in a post of the forum is 800-585-0774

  • Try to use Outlook Express with the service is possible?

    Has anyone tried this before?

    You must have an SMTP server which is already available, and then the information would be provided to you.  Otherwise, you will need to set up your own server and then enable SMTP on this server.  But the account would already have to be implemented in OE before that you could initiate a shipment.

    Steve

Maybe you are looking for

  • Linux Mint - no adjusting brightness on Satellite L45-B4182SM

    Hello world I recently bought a L45-B4182SM and I switched from Windows to Linux Mint 17 8.1. Everything seems to work properly. However, brightness (F3 and F3 keys) control do not work. I would like to know if anyone has faced this problem before, a

  • HP Mini

    Re: HP Compaq Mini 110 BIOS Password Reset HelloI have a compaq mini 110 with CNU93413BN and I can not use because if password is locked.Please help me out of this!Thank you

  • DIADEM too slowly when it runs.

    Hello I have another problem with Diadem 10.2, when I run the program, Diadem is blocked in the load script engine about 7 o 8 minutes. But I don't have this problem with DIadem 11 running take less than a minute. What is the problem? Thank you. Sara

  • Precision T7400 no audio in Windows 7 Ultimate x 64

    Hey people, I know that Windows 7 doesn't is not officially supported on the T7400, although the T7400 was always sold * long * after delivery of Windows 7. Here's the question... the audio drivers appear to install on WInodws 7 (there is no missing

  • try to install windows 10 Windows 7

    I try to install windows 10 Windows 7 and it keeps just restart in windows 7 and nothing installs, help