Replacenocase - Replacing multiple items in one go?

I've searched around and can't seem to find anything, but thought I'd post just incase somebody had an answer to this.
I have a string that I need to use replacenocase on to replace several fields, as an example
myoriginalstring="abc#first#-#second#"
What I want todo is look for the instance of #first# in the string (I know I need to double up on the # to ##) with a value of 99, and then also replace any instance of #second# with 88.
The question is, do I ahve to run two replacenocase statements, replacing one first, then taking the new string and running it again?
I have about 5 different things to search for in the string, and right now I have five statements.
Is there a better way so that it can be done in one statement?
Thanks
Mark

Well, there's no nocase version of it, but there is a replaceList() function which'll go some way towards sorting your problem out.
http://help.adobe.com/en_US/ColdFusion/10.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-6 e17.html
I recommend having a scan through all the functions CFML has... don't try to memorise them all or all the minutiae of them, but at least eyeball them so you get an idea of what 's possible.  And the best way to search the docs is to get Google to do it for you.  If you searched on "site:help.adobe.com/en_US/ColdFusion/10.0/ replace" replaceList() is the fourth match...
Adam

Similar Messages

  • Find / replace multiple items in one query

    Hello,
    I need to find and replace several bits of code in dozens of
    files in Dreamweaver CS3. I know how to find/replace for one item
    at a time using regular expressions. Is there a way to find and
    replace more than one item at at time with regular expressions? I
    know I can save and then load previous searches, but that's
    tedious. I'd like to load and then execute more
    Thanks very much for any advice.

    This is in fact the only solution I found to this problem.
    Creating an extension is not that difficult once you have the right
    reference material.
    Have a look at:
    DW API function to find and replace
    http://livedocs.adobe.com/en_US/Dreamweaver/9.0_API/dwr_code_cd_013.html
    Sample extension file on your machine after installing DW
    C:\Program Files\Adobe\Adobe Extension
    Manager\Samples\Dreamweaver\
    Full specifications of the MXI (extension file) format
    http://download.macromedia.com/pub/exchange/mxi_file_format.pdf
    quote:
    Originally posted by:
    Newsgroup User
    > So, is it indeed possible to run more than one
    find/replace query at a
    > time?
    As far as i know, no it's not possible.
    There has been mentions in the past to this question that a
    series of
    find/replace queries could be built as a dw extension instead
    of a saved
    search query.
    Alan
    Adobe Community Expert, dreamweaver

  • Deleting multiple items in one click

    Hi Guys
    My iTunes has been reset and has for some reason added all the songs on my computer twice = about 120GB when it should only be 60GB.
    I'm sure there used to be a way to delete multiple items in one click but the only way I can seem to do it is by doing it individually after click view duplicates, this clearly isn't practical for over 5500 songs.
    Thanks for the help!

    Thanks for the answer.
    If I understand it correct, If I have an invoice of 10+ items, there is no possibility to delete 5 items for example with one click?
    I have to the delete the 5 items one by one or delete the whole invoice and start again?
    Thanks.

  • Find and replace an item in one column only

    I have tried and tried and I cannot work out how to find and replace an item in one column only.
    For example one column has a letter followed by a number which varies in length.
    I want to find and repace the letters with nothing leaving the numbers only.
    But when I try to do this all the letters in the spreadheet are replaced, not just in the column I have selected.
    Help please....

    Hi 8'
    Use a formula.
    Insert a (temporary) auxiliary column to the right of the one for which you want to male the changes.
    Assuming you description is accurate—every entry in the column consists of a letter followed immediately by a number of one or more digits—the problen could also be stated as  "How do I strip the first character from a string?"
    Here's a sample. Letter followed by number in column B; number part without leading letter i column C:
    Formula:
    C2, and filled down to end of column: =RIGHT(B,LEN(B)-1)
    When the formula has done its work:
    Select all of column C (except the ehader row cell), and Copy.
    Select cell B2, and go Edit > Paste Values.
    Select column C again and go Table (menu) > Delete column.
    Regards,
    Barry

  • Importing Multiple Items in One Document from Goods Receipt (With Serial)

    Hi guys,
    Can you render an example of a multiple items with Serial in one document uploading to Goods Receipt?
    Thank you

    Good Day Sir
    What I did is.
    The Serial BaseLineNum is same as LineNum in DocLines
    Serial Record Key is same as the Documents and Document Lines Record Key
    Serial Line Num is incremented starting 0.
    But I have come up an error
    IGN1.WhsCode Ln9
    'ItemCode* cannot be released from stock without a full selection of serial/batch no.'
    Application-defined or object-defined error
    65171
    Thanks Sir

  • Adding multiple items against one service call

    deal all,
    i need to know , how can we add more then one item to one service call. is there any solution or add-on for this purpose.

    You can add only one item (to be specific only one Serial Number ) in one Service Contract.
    I don't think there is any add-on available for that.

  • Search for multiple items in one text field

    Hi all,
    I am new to ApEx, I have a request from one of our users to ask if there is a way we can allow them to enter more than one search items delimited by a comma. For instance, we have a text item field for user to enter some values as emp names, when he key in like PETER,SMITH,ALLEN,WARD, once he submit the page he will see the result as:
    select t.empno, t.ename, t.job, t.mgr, t.hiredate, t.sal
    from scott.emp t
    where t.ename in('PETER','SMITH','ALLEN','WARD')
    Many thanks.
    Message was edited by:
    lcpx

    You can create a multiselect list named P1_REPORT_SEARCH based on a List of Values (LOV) with those employee names and use this code.
    select t.empno, t.ename, t.job, t.mgr, t.hiredate, t.sal
    from emp t
    where
    (instr(':'||:P1_REPORT_SEARCH ||':',':'||ENAME||':') > 0 or :P1_REPORT_SEARCH is null) /**for multiselect**/
    )

  • How To: Find and replace multiple words in one Click ?

    I have an file with about 150 Pages where I want to replace a word about 500 time by one click.
    Find and Replace works but only with one word.
    How can I do it by one click ?

    You can't, not in Acrobat anyway.
    This is the kind of thing that should be done in the original file format,
    not in a PDF.

  • Classic table : multiple item in one column

    Hi All,
    Is it possible when using a classic table to put two db columns in one column item? I tried
    concatenating but i can't specifically make the second value to the next line. I tried putting
    html tags but messageStyledText just displays the tags, if i use formatted text it doesnt
    put column headings, etc. I need some suggestions.
    gregg

    i used raw text.

  • Return Multiple Items with One Lookup Value

    Hi there,
    Within my data set there are multiple values that I would like to return into a different table.
    For example:
    In the "players from australia" table I would like to search the main data set for the "AUS" tag in column B and then automatically display the names of those players.
    There was something similar posted a few days ago Search sheet and return associated values for multiple matches and I tried to apply those formulas to my data but it didn't work...perhaps slightly different application of the function.
    fyi: the "category" table is simply to add up the number of players from each country and return a numerical value, as opposed to the names. I also use it as the cell from which to determine which value to search and display, i.e. A2 for the AUS players to be displayed in the empty table.
    Any help would be greatly appreciated!!
    Ed.

    You could try something like this:
    The formula in the Index column, copied down:
         =B2&COUNTIF(B$1:B2,B2)
    The formula in A2 of the Players From table, copied down and right:
        =INDEX(Table 1::$A,MATCH(A$1&ROW()−1,Table 1::$D,0),)
    To suppress the display of the red warning triangles, you can wrap that in IFERROR, like this:
         =IFERROR(INDEX(Table 1::$A,MATCH(A$1&ROW()−1,Table 1::$D,0),),"")
    This takes the value in row 1, appends the row number it's on less 1, and uses MATCH to find what row contains that value in the Index column of the other table. That row number is fed to INDEX, which returns the value from column A.
    SG

  • How do I print multiple items of a specific size on one sheet of A4 using photoshop elements 12?

    HI
    I have a small sublimation business whereby I print photo's onto small personalised gifts such as mugs, phone covers fridge magnets. I print out the images to fit the size of the gift i.e. a phone cover or mug the images are a specific size.
    Often I want to print multiple items onto one page each with a customised size as the paper is expensive and I need to make the most of every sheet. I can't figure out how to do this in photoshop elements 12  can anyone help / advise?I am using windows XP
    Thanks Lynsey

    You have a much better chance to get a useful reply if you ask in the Photoshop Elements forum.

  • How to upload multiple items of sales order?

    I have extracted open sales order and transferred it to an excel file.
    Some SO doument has multiple items on one SO.
    If I will upload that SO document (with multiple items) into a new server, how am I suppose to itemize that this document has multiple items?
    I hope my explanation is clear.

    Hi,
    Suppose you are uploading through LSMW
    Then when you recording in t-code VA01 that time you have to enter MULTIPLE ITEMS, so record will capture multiple items then same you maintain in excel and upload.
    Kapil

  • Can I place multiple items on the clipboard?

    I often would like to copy multiple items from one venue such as the Internet or a Word document and then paste them somewhere else without going back/forth and copying one item at a time.
    Is there a way to do this?

    Not the OS X clipboard. But there are numerous clipboard managers around that you will find at CNet Downloads or MacUpdate.

  • Replace multiple spaces

    Hi dear experts,
    I need a function/procedure that replaces multiple spaces by one space.
    (This is because of an Application Express representation of strings in a report).
    (I have to replace ' ' by '_' in this post just because of the same phenomenon).
    Strings like "This___is_an_________example"
    should become " This_is_an__example".
    I need something like:
    create or replace function remove_multispaces(text_in in varchar2) return varchar2 is
    begin
    while instr(text_in,'__') >0 /* two blanks */
    loop
    execute immediate replace (text_in,'__','_'); /*replace 2 blanks by 1 */
    end loop;
    return (text_in);
    end remove_multispaces;
    But this is definitely not working.
    Thank you for your help,
    Hergen.

    SQL> ed
    Wrote file afiedt.buf
    1 create or replace function replace_multispaces(in_str varchar2) return varchar2 is
    2 out_str varchar2(100):=in_str;
    3 begin
    4 while(instr(out_str,'__')>0) loop
    5 out_str:=replace(out_str,'__','_');
    6 end loop;
    7 return(out_str);
    8 exception
    9 when others then
    10 dbms_output.put_line(sqlerrm);
    11* end;
    SQL> /
    Function created.
    SQL> select replace_multispaces('This___is_an_________example') from dual
    2 ;
    REPLACE_MULTISPACES('THIS___IS_AN_________EXAMPLE')
    This_is_an_example
    SQL>

  • ANN: Tutorial on Replacing Multiple or Single Templates in DW on   Child Pages

    FYI: this article is available for free reprints, as long as
    guidelines are
    followed:
    http://www.petersonsales.net/tutorial1.php
    Replacing Old Website Templates in Dreamweaver
    One of the most difficult tasks for a web designer is
    updating legacy
    websites. Legacy websites are websites which have existed for
    many years.
    Often these sites have outdated code or are badly in need of
    an upgrade. For
    years, Dreamweaver has used templates to allow an entire site
    to be updated
    at once simply by making changes to a master page. But what
    do you do when
    the template itself was developed with outdated code and the
    site needs a
    complete design overhaul? How do you fix it without having to
    cut and paste
    the content from every existing page to a newly designed one?
    Part 1 - Overwriting a Single Template
    Part 2 - Replacing Multiple Templates with One
    ~~~~~~~~~~~~
    Jefferis Peterson, Pres.
    Web Design and Marketing
    http://www.PetersonSales.com

    What Ken has said also applied to
    <img src="/assets/images/Lights/lights_select.jpg" width="400" height="400" alt="Lighting Thumbnails" />
    which look for the JPG in http://davidcoshdesign.com/assets/images/Lights/lights_select.jpg rather than http://davidcoshdesign.com/nea/assets/images/Lights/lights_select.jpg
    Gramps

Maybe you are looking for

  • Bookmarks in an Interactive PDF

    When I export a large book from CS6 to an interactive PDF, the bookmarks are jumbled. Many are missing the chapter heading so the levels within those chapters are thrown off and some chapter heading appear as a lower level at the end of the previous

  • Reading mails from Zimbra inbox.

    Hi, I have a basic program to read the inbox of a zimbra mail user. i have supplied the necessary information like username passwd, Can someone please tell me what is the pop server required for the Zimbra mail client. i know it is somethign do with

  • How to file an email as .msg file

    i organise my important email as files in .msg format. When i searched i came across an app email archiver which saves it as .eml. Is there any way to save email as .msg file on SD card? I am ok to buy an app for this. The msg file should contact att

  • Need to write condition in reports.

    Hi Experts, Can you please clarify the below issue. In my report i've two fields called ADATE & BDATE.I want to wirte a condition or rule in front end...if ADATE>BDATE = C(EARLY) IF ADATE<BDATE = C(LATE). How to get this result in my report lavel.   

  • How do I update Adobe Application Manager?

    My current Adobe Application Manager version is 7.0.0.233 (7.0.0.233). I keep getting error code U44M1I20 when I want to upgrade CS6. Thank you for your help. Olivier