Help with removing a variable number using "find and replace"

Hey, I have to remove a variable number from a large number of documents.
How would I do this using "find and replace"
<text><![CDATA[Coloured 250]]></text>
250 is an example of the variable number that I will need to remove so it looks like this:
<text><![CDATA[Coloured]]></text>
Note: the text "coloured" is subject to change also.
Thanks

That's a possibilitly I'll explore.  Thanks for the alternate perspective!
(5 minutes later)
Oh well, it was a good thought.
Unfortunately each line of raw original text may contain from 1 to 4 lines of final text.  In other words there is no consistency in the number of backslashes (hard returns) in each line of original text, and thus, when backslashes are converted to commas, no consistency in the number of data elements in each data set. 
Sadly PS variables will not handle finding a source text line that does not have data for 4 variables.  So I either have to go back and add enough commas on each short line to make four individual data elements for each data set... or I simply deal with the hard returns within Photoshop.
I think I've reached the limit of automation on this process.

Similar Messages

  • How can I create an action that uses "Find and replace"?

    Hi there,
    I'm trying to create an action that will use "Find and replace" to change certain words and phrases in my .psd-files. These are words and phrases I change a lot (I'm translating emails and website banners) and I would like to speed up that process using actions.
    When I tried to create the action I got the error message "The object "in contents of all text layers" is not currently available".
    Then I tried "insert menu items" and chose "Find and replace" and then did my change, but then it stopped when the FAR-window popped up. That's what I want to skip, so it just changes my words and phrases that I want.
    Is this possible?
    Best,
    Carl

    Anyway, in the Script in that other thread the function replaceText takes two Strings, so something like
    function main () {
    var myDocument = app.activeDocument;
    replaceText ("replace this", "with this")
    would be a possibility.

  • Dreamweaver CC generates one of 3 error messages when using find and replace on Win 8.1 64 bit.

    Dreamweaver CC generates one of 3 error messages when using find and replace is used more than twice in succession. "While executing onLoad in bc_afterSave.htm, the following JavaScript error(s) occurred: At line 188 of file C:\Program Files (x86)\Adobe|Adobe DreamweaverCC|Configuration|Shared|BC\JS\bc_sites.js": out of memory"
    or
    While executing runCommand in File_Save.htm, a JavaScript erroroccurred.
    or
    While exciting getDynamicContent inAdressURL.htm, a Javascript erroroccirred.
    Any thoughts - I end up closing DWCC and reopening. Will work for two additional Find and Replace before the error messaged\s popup again.

    bkaufman43 wrote:
    Thanks Jon. I tried all of those solutions before posting. Same problem. It seems that the problem is tied to DWCC. Do not have the problem when using DW6 on Win8.1. When running DWCC on a Win7 pc, we get the same error message. When running DW6 on Win 7, f&c works fine. It seems to be a bug in DWCC. DWCC works flawlessly on our Macs.
    The same steps apply to DWCC, you just need to choose the CC folders rather than the DWCS4-6 versions that the page talks about. The layout of CC's folders hasn't changed from the older versions which is why, I think, Adobe hasn't updated the troubleshooting page as of yet.
    As Nancy mentions, a 38,500 page site is sort of ridiculously large for a static website, that could be part of the problem, but your response quoted above leads me to think you may have tried the troubleshooting steps in the wrong version of the program. Could you confirm that?

  • How to use Find and Replace for CR or TAB

    How can I use PAGES 'Find and Replace' function to eliminate unwanted carriage returns or Tabs?
    I tried to copy the backwards P and paste into Pages find window, but that doesn't work.
    eMac   Mac OS X (10.4.4)   1 G RAM

    Copying & pasting should work, but it isn't necessary. In the Find & Replace fields hold down the Option key & hit the return or tab key.
    Peggy

  • How do I remove a space before the first word in a sentence using find and replace or GREP?

    Right, so I am laying out a document in inDesign from a word document and it has a space before every first word in a sentence. It is really annoying and I need a quick way to get rid of them. I wasn't too sure how to do it with find/change but I am sure there is a way in GREP if someone can help me. I have included an image so that people can see exactly what I mean.

    The ^ location works for all paragraphs.
    But a note to the OP, there is a sample script called FindChangeByList that removes leading and trailing spaces as well as extra spaces after punctuation, all in one go. But if you want to continue to use a GREP find/change to remove leading space, I'd modify Joel's suggestion to ^\s+ to get those cases where the user typed multiple spaces as well.
    And don't forget there are actually legitimate places for leading tabs, which both the script and this GREP will find and remove, so be careful.

  • HELP WITH DOING BANNER AD ROTATION USING FLASH AND ASP

    I need to know how to do Banner Advertisement (AFFILIATE ADS)  in Flash using ActionScript  3 in Document Class(BANNERADS.AS).
    I have
           GETBANNERADS.ASP (ASP Web Program)
                  Retrieves Next AD (IMAGEURL, NAVIGATEURL) containing Banner and Advertiser URL
                            BANNER                     ADVERTISER URL
                            BUSHDOCTOR.GIF      http://www.clickbank.com
                            SIZZLA.GIF                  http://www.amazon.com/AMAZON.PHP?AFFILIATE_CODE=2345
                            EXODUS.GIF               http://www.godaddy.com/GODADDY.PHP?AFFILIATE_CODE=77777
                            UPRISING.GIF             http://www.easycgi.com/
           BANNERADSDBF.MDB (Microsoft Access Database with list of AFFILIATE ADVERTISEMENTS)
           BANNERADS.SWF
    package {
         import flash.display.MovieClip ;
         public class BANNERADS Extends MovieClip {
               public function BANNERADS() {    
                      var PICTURE:Loader  = New Loader();
                      var IMAGEURL:String    = "";
                      var NAVIGATEURL:String = "";
                      while (  ) {
                            LoadVariable("GETBANNERADS.ASP", IMAGEURL, NAVIGATEURL);
                            PICTURE.Load(New URLRequest(IMAGEURL));
                            PICTURE.AddActionListener(evt.COMPLETE, onload);
               public function onload() { 
                     PICTURE.AddActionListener(MouseEvent.CLICK, onClick);
               public function onClick() {
                      geturl(NAVIGATEURL);

    package (
                      import flash.display.Sprite;
                      import flash.events.*;
                      import flash.net.URLLoader;
                      import flash.net.URLLoaderDataFormat;
                      import flash.net.URLRequest;
                      public class Main extends Sprite {
                                     public function Main() {
                                              var PICTURE:Loader            = New Loader();
                                             PICTURE.addEventListener(Event.COMPLETE, onLoaded);
                                             var LOADER :URLLoader         = new URLLoader();
                                             LOADER.addEventListener(Event.COMPLETE, getdata);
                                             LOADER.dataFormat             = URLLoaderDataFormat.VARIABLES;
                                             var IMAGEURL    :String           = "";
                                            var ADVERTISERURL :String     = "";
                                             var COUNTER      :Number       = 0;
                                             var MAX               :Number       =0;
                                             while ( COUNTER <= MAX)       {
                                                             COUNTER   = COUNTER + 1;
                                                             var requester:URLRequest = new URLRequest("BANNERADS.ASP");
                                                             requester.method         = URLRequestMethod.POST;
                                                             LOADER.load(requester);
                                                             if (COUNTER == MAX) {
                                                                        COUNTER = 0; 
                                     public function getdata(){
                                                 var loader2 : URLLoader = new URLLoader(Event.target);
                                                 loader2.dataFormat      = URLLoaderDataFormat.VARIABLES;
                                                 var IMAGE   :URLRequest = new URLRequest(loader2.data.IMAGEURL);
                                                 ADVERTISERURL            = loader2.data.NAVIGATEURL;
                                                 MAX                                = loader2.data.MAXCOUNT;
                                                 PICTURE.load(IMAGE);
                                     public function onLoaded(){
                                               PICTURE.addEventListener(MouseEvent.CLICK, onClick);        
                                     public function onClick(){
                                               navigateToURL(ADVERTISERURL);

  • In the new Numbers, can I find and replace within formulas like I used to in Numbers'09?

    I use Numbers with quite long formulas with reference to other tables. With Numbers'09, it was extremely useful to copy formulas and then use "find and replace" to change the terms within.
    Did they remove this option? I don't seem to be able to do that with the new Version.
    If it's still there, where do I find it?
    If it's not there.... why would they remove it.
    Thanks

    Basically, I use it for payroll, taxes, and so on... I have one sheet per employee (which compiles their weekly payroll). I have then different sheets which makes the quarterly taxes calculation (state and federal taxes - 941, 940, W2, disability,  UI, paystubs, tracks payments and deadlines, etc... ). It took me awhile to write all of the formulas, but now it does everything for me.
    When I add an employee. I have to add a sheet, but also add a line in the calculation sheets. Because all the employee sheets are the same format, all I need to do (or used to now) was to copy the line above, and just change the reference name of the employee sheet  within the formula (because there are several terms that are looked up, the reference name comes several time in the formula)... changing it manually is really annoying. What was taking me a minute or so, before, now takes me about 20 minutes. (between the different sheets, there are about between 75 to 100 changes in formulas per new employee - so the "find and replace" in formula only, was extremely useful).

  • How to find and replace with sequential values?

    im building a website. it contains 12 main images per page and luckily according to my design the source code per page contains 12 <img> tags only (rest is background and stuff). now for many pages i keep using a particular page as template and then change each and every image by browsing and clicking. Now i want to make my work easy.
    the images that i want to add in every page are sequentially file named.  001.jpg , 002.jpg .......... and so on.
    So is there some way that i can use find and replace , to find the <img> tags and fill them all with values sequentially that is the first <img> tag containts 001.jpg and the second containts 002,jpg and so on .
    the pages are many thats why i want to make this easy
    thanks very much for help

    Will they ever do this?   I just wish Adobe would purchase TextPad and integrate it into Dreamweaver.  In TextPad, from the manual:
    Other TextPad options in the replacement string:
    \i Generate a sequence number.
    \i(N,M) Ditto, starting at N and incrementing by M.
    So beautifully simple.

  • Find and Replace using Behaviors

    I used Find and Replace in CS3 to add HTML code that includes
    a DW Behavior. The behavior opens a message popup when clicked.
    The Find and Replace works and by adding the Behavior code
    correctly. However, when I save the page and then click the link to
    test the behavior, the popup does not appear.
    The only way I can get the Behavior to work correctly is to
    complete the Find and Replace, double-click to open the Behavior
    from the Tag group, close the behavior and then resave the page.
    Is this a DW problem or am I doing something wrong?

    You are probably not adding all the necessary code during the
    search and
    replace. What exactly are you pasting in?
    Alec
    Adobe Community Expert

  • Reformatting files in Dreamweaver: Batch series of .dwr files (find and replace) consecutively

    I have to do complicated reformatting of an entire site. It's been simplified to a series of find and replace tasks for each file. Each find and replace string has been saved as a .dwr file. Currently I have to load and execute each .dwr file.
    How do you batch process or automate this task in Dreamweaver? In other words, queue up a series of .dwr files to be executed consecutively?

    OK here we go.
    This example, a simple Dreamweaver  Command Extension, will execute two Find and Replace commands in one go. (It can be any number of Find and Replace commands.)
    The first command replaces "the" and "this" with "phe" and "phis". The second command replaces <ul> ... </ul> with <ol> ... </ol>. (These of course can be any Find and Replace.)
    You need two files: a HTML file (for the  UI) and a Javascript file (for actions). I named them "Find and Replace Test.html" and "Find and Replace Test.js". (They can be any name.)
    Find and Replace Test.html
    <!DOCTYPE HTML SYSTEM "-//Adobe//DWExtension layout-engine 10.0//dialog">
    <HTML>
    <HEAD>
    <Title>Find and Replace Test</Title>
    <script src="Find and Replace Test.js"></script>
    </HEAD>
    <BODY>
    <form>
         <p>Are you sure?</p>
    </form>
    </BODY>
    </HTML>
    Find and Replace Test.js
    function canAcceptCommand() {
        return true;
    function commandButtons() {
        return new Array("Go!", "doIt()", "Cancel", "window.close()");
    function doIt() {
        dreamweaver.setUpFindReplace({
            searchString: "th(e|is)",
            replaceString: "ph$1",
            searchWhat: "document",
            searchSource: true,
            useRegularExpressions: true
        dreamweaver.replaceAll();
        dreamweaver.setUpFindReplace({
            searchString: "<(/?)ul>",
            replaceString: "<$1ol>",
            searchWhat: "document",
            searchSource: true,
            useRegularExpressions: true
        dreamweaver.replaceAll();
        window.close();
    Basically you can call any number of this pair of functions in the script:
    dreamweaver.setUpFindReplace(findAndReplaceObject);
    dreamweaver.replaceAll();
    Place these HTML and JS files in this directory:
    Dreamweaver App Directory/Configuration/Commands/ 
    Then in Dreamweaver, open "Insert" window. (You need to have a HTML file open in order to make the Insert window active.) At the top of the Insert window there's a category dropdown menu  ("Common" etc.). Do alt + click (ctrl + click) - then you'll see an item "Reload Extenesions" at the bottom of the dropdown. This will load this extension to DW. (Alternatively you can restart DW to load the extension.)
    Now it's ready to run the Extension. Open a HTML document you want to modify. Go to "Commands" on the menu bar. At the bottom of the dropdown there should be an item "Find and Replace Test". Select and enjoy
    Notes
    This example is set to perform the Find and Replace on the current document. You can change the scope to the entire site, or the selected files, etc, just like in the Find and Replace dialogue box. The API doc is here: http://help.adobe.com/en_US/dreamweaver/cs/apiref/WS5b3ccc516d4fbf351e63e3d117f9e09bcf-7ed a.html
    You can use dreamweaver.setUpComplexFindReplace(xmlQueryString) command instead. xmlQueryString is basically <dwquery> ... </dwquery> in your .dwr files, you can copy from your .dwr files. However xmlQueryString needs to be one continuous string (no line breaks), which can be a pain The doc: http://help.adobe.com/en_US/dreamweaver/cs/apiref/WS5b3ccc516d4fbf351e63e3d117f9e09bcf-7ed 9.html
    Command Extension general example in the doc: http://help.adobe.com/en_US/dreamweaver/cs/extend/WS5b3ccc516d4fbf351e63e3d117f53d6ec3-7fe 6.html
    I hope all of these make sense...
    Kenneth Kawamoto
    http://www.materiaprima.co.uk/

  • How do I create a multiple find and replace for Excel in AppleScript?

    I have a large dataset in Excel that I have to do a multiple find/replace in (changing USPS state abbreviations to their full names). In searching the Microsoft boards--I was directed to use Applescript, and even the documented help with Excel was recommeding this. Unfortunately, there wasn't much help potinting me in the specific direction I needed. Any ideas on how I should write this script?
    Thanks!

    I'm confused as to why Applescript (or any script would be helpful).
    You'd have to type the abbreviation and the full name into the script, the same as just using Find and Replace All. You wouldn't gain anything by using a script. Is there more to this task than you've let on?
    MacTech has an article on converting from VBA to Applescript, but I'm not sure if it would have any ideas on your specific problem: http://www.mactech.com/vba-transition-guide/index-toc.html

  • Numbers find and replace

    Sorry, my only "question" about this is WHY Apple would put such poor software on the market. Functions such as "find and replace" in Numbers are so incomplete and poorly designed they make the entire package useless. F&R only does text, cannot F&R in selected columns and.....will start to search an entire spreadsheet using the last "find" entry and/or starts to search before all of the "find" has been typed. When working with a large spreadsheet, Numbers will start its own find search, not allowing the "replace" entry to even be entered until it searches the entire spreadsheet (sometimes that requires force quitting Numbers to make it stop the useless search.)
    I have been a Mac user since the very first 64K model. For Apple to release Numbers and then discuss how "elegant" it is an embarrasment to all Apple fans.
    Mac in Smyrna

    Jerrold:
    Thank you for your response.
    The problem is, I HAVE sent comments to Apple regarding Numbers before. As we all know, Apple has made many many decisions (automatic save, etc., etc.) without any attempt at asking their users if that change would be useful or a problem.
    My hope is the dedicted Apple community might be able to get some attention for a long standing problem. Apple has issued multiple updates for numbers that do nothing to correct the problems real users have communicated to them.
    I have been the "promoter" of Apple and Apple products in two large MS Windows dominated companies over the last 25 plus years. By putting products such as Numbers on the market to "business" users and then letting them discover things like Number's find and replace capabilities does a disservice to the entire family of Apple products in the business marketplace.
    If the problem is with copyright problems with MS Excell, tell us. Don't keep telling us about elegant non functional software!
    Mac in Smyrna

  • Question about Find and Replace PL/SQL option in Forms Builder

    Dear All
    I have a small question .
    I am using Find and Replace PLSQ/SQL in forms Builder ( Edit - Find and Replace PLSQL) to search any code in a form.
    Let say I am searching for EMP .
    Then all the places is coming where EMP is used as well as EMPloyee , EMPloyee_Desc tables also coming .
    So is there any way to serach only the EMP part .

    If you look closely to the right of the "Find What" field, you should see a button - "Expression". This allows you to add some logic to your search. Alternatively, depending on how you code, you could just look for spaces. For example, if you are looking for EMP and not EMPLOYEE, search for EMP with a blank space before and after it (assuming you code this way) or use something like this \bEMP\b This would work for me because I code the same way I write sentences - each work is separated by spaces.
    <blockquote> EMPLOYEE := EMP || ' - ID';</blockquote>
    In this example, seaching for EMP with a blank space after would find what I wanted. However, if you only search for a trailing blank, you may end up also finding words like tEMP. This is where have a blank space before each word is helpful.
    Other, more valuable expressions could be written to accomplish your task. Refer to the Forms Builder Online help for more information about using Expressions in the Find and Replace search window.

  • How to find and replace any string between " "

    Hi everyone,
    Here my sample
    String szTest;
    szTest = "Yellow banana";
    szTest = "Blue monkey";
    szTest = "Red mango";
    szTest is only needed when it's in testing progress. Now I want to put all of that in the /*comment*/ so the released program won't run those code any more (but still keep szTest so I can use it for future develop testing).
    So Here what I want after using the Find and Replace Box:
    //String szTest; //Manual
    /*szTest = "Yellow banana";*/ //use find and replace
    /*szTest = "Blue monkey";*/ //use find and replace
    /*szTest = "Red mango";*/ //use find and replace
    I think I can do this with Regular expressions or Wildcards. But I don't know how to find and replace any string between " and ".
    Find: szTest = " ??Any string?? ";
    Replace with: /*szTest = " ??Any string?? ";*/
    Thanks for reading.

    Hi Nathan.j.Smith,
    Based on your issue, I suggest you can try the Joel's suggestion check your issue again. In addition, I find a MSDN document about how to use the Regex.Replace Method to match a regular expression pattern with a specified replacement string,
    maybe you will get some useful message.
    https://msdn.microsoft.com/en-us/library/xwewhkd1(v=vs.110).aspx
    If the above suggestion still could not provide you, could you please tell me what language you use to create the program for finding and replace any string using regular expression so that we will find the correct programming develop forum to support this
    issue?
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Multi File Find and Replace FAR missing from tools

    I have RoboHelp x5.0.2 and I have always used Find and
    Replace at my previous employer. I have started with a new company
    and the RoboHelp FAR is missing from Tools. I know you can Add a
    tool if you know the path, but I have no idea where to look.
    Some background:
    We use Source Safe (VSS) to check our files in and out.
    I have verified that all of the files are NOT read-only.
    HELP!!!!

    Maybe you are mixing up something. RoboHelp includes a tool
    named Multi-File Find and Replace. This should indeed be situated
    on the Tools pane.
    There exists a tool called FAR, which, among other things,
    offers a similar functionality. FAR is shareware and
    not included in RoboHelp.
    Greetings
    ---Dirk Bock

Maybe you are looking for

  • Sales analysis report of items not inventoried in utility bill

    Buenas tardes: Espero me entiendan ya que mi ingles es un poco malo. quisiera saber si hay alguna forma de sacar un reporte de facturas de servicio donde los articulos son del tipo no inventariable, ya que en el analisis de ventas no me permite sacar

  • Mavericks upgrade...lost my 2nd monitor

    Need help. Just upgraded to Mavericks. I've been using a 2nd 23" Cinema Display w/o problems with my MacBookPro. After the upgrade, the 2nd display only shows the background and tool bar at the top. No desktop icons, no Dock, and the cursor is also g

  • How to change the status profile of equipment?

    Hi Experts, Is it possible to change the user status profile for already created equipment? I tried to change the assignment of status profile to equipment category and found it works only for new equipments. It is not applicable to already created e

  • How do I restore back to 3.1.X?

    I upgraded to iOS 4.0 today, but now everything on the phone runs extremely slow, as has been reported all over the web. How the **** does that get past Apple? We're not talking 1-2 seconds slower. I have apps now taking 12-14 seconds to fully start.

  • How important is a dedicated metadata controller?

    Hello, I'm currently setting up a computational cluster consisting of 16 XServes (eventually 32) and 5 Mac Pros, each of which need to simultaneously write to a single volume on a shared 10TB Promise VTrak RAID. My motivation for using XSan is data i