Problem with search and replace

I'm workin on Windows XP, Dreamwearver 8
When I do a search and replace in a site, the changes will be
made correctly, however, the auto date stamp that I'm using on my
pages will duplicate on random pages and overwrite text This
doesn't occur on all pages, and isn't connected with the actual
change I'm making. Has anyone experienced this?

Ok Gary, but...
in a SQLWorksheet write:
ababab
Now Edit -> Replace search for b , replace with \nb
Result (the last b is not replaced):
a
ba
bab
At this point, I want to have my string back on one line: Edit -> Replace search for \n , replace with (nothing here)
Result: The search text "\n" was not found.
And to make it work I have to tick the Regular Expressions checkbox (in this case substitute escaped characters is ignored).
While I agree that "it is good to have a choice", I personally find it confusing: none of the few text editors I use (Linux or OSX) behaves this way.
Regards.
Alessandro

Similar Messages

  • Dumb Q: problem with Find And Replace window in Flash 8

    Dear Flash Group,
    apologies if this is trivial, it's my first day using Flash.
    I downloaded a Flash project from
    http://www.flashorb.com/articles/benchmark_files/flash-benchmark.zip.
    This
    flash calls into a web service at localhost:8080. I used the
    'Find and
    Replace' window within Flash Professional 8 to locate the
    string
    'localhost:8080' and replaced it with plain 'localhost'.
    However, when I 'Debug the Movie' (Ctrl-Shift-Enter), it
    still tries to
    access port 8080! Obsiously, my replace command did not do
    what I thought it
    would do. I opened the FLA file in a binary editor, and saw 4
    more
    references to 8080, One if them in 'Properties' of a
    WebServicesConnector,
    but I cannot figure out how to find the other occurences.
    Checking on google, I see lots of people having similar
    problems, but no
    solutions
    Any ideas?
    Regards, /george
    PS. What do you guys do for code completion - is there a tool
    that would
    bring Flash on par with an professional IDE?

    george,
    > when I 'Debug the Movie' (Ctrl-Shift-Enter), it still
    > tries to access port 8080! Obsiously, my replace
    > command did not do what I thought it would do.
    Agreed.
    > I opened the FLA file in a binary editor, and saw 4
    > more references to 8080, One if them in 'Properties'
    > of a WebServicesConnector, but I cannot figure out
    > how to find the other occurences.
    Might they be the result of that WebServicesConnector
    reference?
    > Checking on google, I see lots of people having
    > similar problems, but no solutions
    That's really odd, actually. I'm on these boards every day,
    and I've
    never heard of this issue. I don't *think* the Find/Replace
    dialog visits
    panel contents, such as the Component Inspector panel, but I
    wouldn't swear
    to that.
    > What do you guys do for code completion - is there
    > a tool that would bring Flash on par with an
    professional IDE?
    Well, Flash is a professional IDE, of course. By definition,
    if you pay
    for something, you have acquired a professional product or
    service. I know
    what you mean, though. Flash itself rocks, but the Actions
    panel can be
    glaringly weak. Personally, I use SE|PY to edit ActionScript.
    http://www.sephiroth.it/python/sepy.php
    Sorry I can't speak to your other issue. :-/
    David
    stiller (at) quip (dot) net
    Dev essays:
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • Problems with StringBuilders and Replacing Chars

    I need to generate a password of random letters and numbers, I've been successful so far, but what I need to do is take the password I generated, delete one character, add a number to the end. Once that's done, I need to search the password for the letters L and O and replace them with underscore.
    When I call makeBetterPassword() - It outputs : 4 random letters and a bunch of squares
    When I call makeEvenBetterPassword() - I get the following error.
    Exception: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    Here's my code - Any help would be greatly appreciated :)
    public StringBuilder makeBetterPassword()
           makeBetterSB.setLength(passLength -1);
            makeBetterSB.append(randNumber);
          if(noise.nextBoolean() == true)
             makeBetterSB.reverse();
          return makeBetterSB;
       public void makeEvenBetterPassword()
          int indexStart = 0;
          int indexEnd = 0;
          for(int i = 0; i < makeBetterSB.length(); i++)
             indexStart = makeBetterSB.indexOf("l", 0);
             indexEnd = indexStart +1;
             makeBetterSB.replace(indexStart, indexEnd, "_");
       }

    the3rdhero wrote:
    I need to generate a password of random letters and numbers, I've been successful so far, but what I need to do is take the password I generated, delete one character, add a number to the end. Once that's done, I need to search the password for the letters L and O and replace them with underscore.
    When I call makeBetterPassword() - It outputs : 4 random letters and a bunch of squaressquares: you have numbers in there that don't correspond to ASCII characters. You may want to limit the range of random numbers allowed.
    >
    When I call makeEvenBetterPassword() - I get the following error.
    Exception: java.lang.StringIndexOutOfBoundsException: String index out of range: -1So the original password doesn't have any "l" characters and returns -1. You have to allow for this.

  • Help with searching and replacing

    This kind of carries on from the previous topic i posted, but that one came to a bit of a dead end. Here is the code that i have so far:
    import java.io.*;
    import java.util.*;
    class SearchReplaceApp
         public static InputStreamReader input =
         new InputStreamReader(System.in);
         public static BufferedReader keyboardInput =
         new BufferedReader(input);
         public static void main(String[] args) throws IOException
         FileReader file = new FileReader(args[0]);
         BufferedReader MyFile = new BufferedReader(file);
              StringTokenizer TokenizeMe;
              int NumberOfTokens = 0;
              int NumberOfWords = 0;
         TokenizeMe = new StringTokenizer(MyFile.readLine());
         NumberOfTokens = TokenizeMe.countTokens();
         while (NumberOfTokens != 0)
              for (int WordsInLine=1; WordsInLine<=NumberOfTokens;
                        WordsInLine++)
                   System.out.print(TokenizeMe.nextToken()+" ");
              System.out.println();
              NumberOfWords += NumberOfTokens;
              String line = MyFile.readLine();
              if (line==null) break;
              TokenizeMe = new StringTokenizer(line);
              NumberOfTokens = TokenizeMe.countTokens();
              String findWord;
              String replaceWord;
              System.out.println ("Search for?:");
              findWord = keyboardInput.readLine();
              System.out.println("Replace With?:");
              replaceWord = keyboardInput.readLine();
              if (line.equals(findWord)) {               
              line = replaceWord;
         System.out.println("\nThis file contains " + NumberOfWords + " words");
         MyFile.close();
         }The problem is that it asks to search for a word after it has read each line of the file to the screen, instead of just asking when it has read in the whole file, which is what i want it to do. can anyone help me with this?
    I think the problem lies in the part :
              String findWord;
              String replaceWord;
              System.out.println ("Search for?:");
              findWord = keyboardInput.readLine();
              System.out.println("Replace With?:");
              replaceWord = keyboardInput.readLine();
              if (line.equals(findWord)) {               
              line = replaceWord;
    I would also like the program to display the dedited text after the replace has been completed e.g.
    java SearchReplaceApp test.txt
    This is a test
    This is a test
    This is a Test
    This is a Test
    This file contains 16 words
    Search for?: test
    Replace with?: Test
    This is a Test
    This is a Test
    This is a Test
    This is a Test
    Search for?:
    etc............................
    Any help at all would be appreaciated as im getting a bit frustated with this program and also my own lack of knowledge.
    Thanks
    Max

    Hi,
    sorri for that code which sent. here's is the correct code
    import java.io.*;
    import java.util.*;
    class SearchReplaceApp
    public static InputStreamReader input = new InputStreamReader(System.in);
    public static BufferedReader keyboardInput = new BufferedReader(input);
    public static void main(String[] args) throws IOException
    FileReader file = new FileReader(args[0]);
    BufferedReader MyFile = new BufferedReader(file);
    StringTokenizer TokenizeMe;
    int NumberOfTokens = 0;
    int NumberOfWords = 0;
    String line = MyFile.readLine();
    String completeText = "";
    Vector strVec = new Vector();
    while(line!=null)
    completeText+="\r\n";
    StringTokenizer tokenizeLine = new StringTokenizer(line);
    NumberOfWords+=tokenizeLine.countTokens();
    completeText +=line;strVec.add(line);
    line = MyFile.readLine();
    MyFile.close();
    System.out.println(completeText);
    System.out.println("This file contains"+NumberOfWords+ "words");
    String findWord="";
    String replaceWord;
    String resultStr = "\r\n";
    for ( ;;)
    System.out.println ("Search for?:");
    System.out.println("Please enter quit for quit:");
    findWord = keyboardInput.readLine();
    if(findWord.equals("quit")) break;
    //While findWord is not =null do.......
    System.out.println("Replace With?:");
    replaceWord = keyboardInput.readLine();
    for(int i=0;i<strVec.size();i++)
    String str = (String)strVec.get(i);
    TokenizeMe = new StringTokenizer(str);
    while ( TokenizeMe.hasMoreTokens())
    String token = TokenizeMe.nextToken();
    if (token.trim().equals(findWord.trim()))
    token = replaceWord; resultStr+=" " +token;
    else{resultStr+=" "+token;}}resultStr+="\r\n";
    System.out.println("COMPLETE TEXT AFTER REPLACE IS "+resultStr);
    //Save changes back to original file
    String str = resultStr;
    FileWriter newFile = new FileWriter(args[0]);
    PrintWriter fw = new PrintWriter(newFile);
    char[] ch = new char[str.length()];
    str.getChars(0,str.length(),ch,0);
    fw.write(ch);
    fw.flush();
    fw.close();
    hope this solves your problem.
    shyam

  • Help with search and replace script please

    Hi all
    I've written a javascript which uses various GREP and text find/changes to copy some text from the first two paragraphs of a document and use them elsewhere (in the running head and footers) and now I want to delete the first two paragraphs. Not sure how I would do that. If I was doing a manual find/change (with nothing selected) it would automatically select the first para in the first text box but when I run teh following;
    app.findGrepPreferences.findWhat = "^.+$";
    app.changeGrepPreferences.changeTo="";
    app.activeDocument.changeGrep();
    it finds all paragraphs and deletes them. I was going to include the code twice; once to delete the first paragraph and then again to delete the other (new first) paragraph. My JS skills are shaky but I'm quite comfortable with GREP. Can anyone point me in the right direction for how I acheive what I want? If I did a for loop surely I'd just be doing the same thing but more than once!
    Much to my surprise the rest of the script is working although it made my brain hurt!
    thanks for any suggestions,
    Iain

    Oooh. After
    myStory=app.activeDocument.stories.everyItem();
    the variable "myStory" won't point to just a single story, but ... to "every story". So that's why the next line removes more than you intended!
    What the "everyItem" thingy internally does is still unclear to me, but that doesn't keep me from using it -- but only when you absolutely, positively want to perform an action on every item
    Now the usual examples say something like
    myStory = app.activeDocument.stories.item(0); // access first story
    but that's No Good. Even if your first story is the one you are targeting today, tomorrow, in a different document, it'll be story #1, or #5, or #255. There is no general rule that states the first story is always the largest one, or something like that.
    If this is going to be used with a document template, the best way to identify the target story is by giving the first text frame a unique label. Otherwise, you'll have to think of something else ... A couple of other strategies:
    1. You are already using GREP to find stuff. If one of those searches is guaranteed to return just text in the one story you are interested in, you can use this.
    2. You mention headers and footers. If your main text is the only one that runs through multiple text frames, you can loop over all stories and check which one runs through than a single text frame.
    3. ... (I'm pretty sure there are some more strategies ...)

  • Search and replace string problems

    Hi to all,
    I have problem with Search and replace string function. It shows me a wrong Value (Number) from 15 to 100 is everything OK (15=0, 30=1, 45=2, 100=3), but after 100 ........
    Take look in VI and if you have any ideas post them please
    THX
    Igor 
    Attachments:
    indexing.vi ‏10 KB

    there will be no 15115 string, but 15 or 115 and 15 is 0, 115 is 4. Anyway, i have changed string input format and now its working THX for your help
    Attachments:
    indexing.vi ‏10 KB

  • Search and replace with comma

    Hello All,
    I want some help. Please help me.
    I have comma delimited Data. When I’m converting Sting to Array, If two commas exists in between then its displaying “Zero” (because its array propriety ). Instead of that I want to display “NaN” .
    Please give me any idea to replace comma to NaN. I tried with Search and Replace but it’s not giving as I expected.
    Munna
    Solved!
    Go to Solution.

    Hello GerdW,
    Thanks you so much for your reply.
    I thought, instead of replacing trailing comma by NaN adding comma before string is more better (because to many string manipulations) But, it’s taking more execution time.
    Munna
    Attachments:
    Search and Replace.vi ‏415 KB

  • Search and Replace on master pages

    Is there a way to do Search and Replace on masterpages.
    Example: There are 30 files in a .book document.
    On those 20 files the header and footer must change.
    The header and footer are on the master pages.
    Can you p. e. change "Haeder1" to "Header1" with Search and Replace?
    Right now we do it on this way:
    Open all files in book
    Set view to Masterpage manually file per file (30 times).
    Search "Haeder1" and replace with "Header1" (option search in book)
    Is there a way to do it faster?
    Thanks in advance
    Sander Gheldof

    Thanks for your help...but the headers aren't variables...
    It may be that your solution is to bite the bullet today and do the page-by-page change of your headers to variables.
    System header variables can, for example, contain text from a paragraph style such as a level-[ 1 | 2 | 3...] heading. Or other values received from a FrameMaker named paragraph style.
    User-defined variables can also be used in headers and footers, although they can't be made to do the zippy automatic things system header/footer variables do...
    The essential point being that after doing it the hard way today, you may never need to do it again tomorrow. Or, alternatively, subsequent changes can be effected by changing the value of the variable and importing that into the desired target chapter files...
    Cheers & hope this helps,
    Riley

  • HTML character entities problem in saved regex search and replace query

    I have a many search and replace regular expression queries (.dwr files) that I have saved. I have a problem specifically with saved queries that contain HTML entities such as "& nbsp ; " or "& shy ;" (spaces added otherwise code doesn't render in browser). For example if I use the following search:
    ([\d]{3}& shy ;[\d]{3}& shy ;[\d]{4}|[\d]{3}& nbsp ;[\d]{3}& nbsp ;[\d]{4})
    (which searches for numbers in the 888-555-1234 or 888 555 1234 formats)
    This will work fine if I manually enter it into the search text area. However if I save it to file and reload it, it will no longer work because the &shy; and   characters are now displayed as " " (space) and "-"(shy) rendering the saved query useless as it's no longer searching for the code. I have some fairly long and complex queries and this is becoming a problem.
    Thanks for any help.
    I'm currently using Dreaweaver CS4 at home and CS5.5 at work.

    Thanks for your reply Kenneth, but that is not what I'm trying to accomplish. I'm looking for the HTML entities that exist in the source code which are & shy ; and & nbsp ; (without the spaces). As I mentioned above, if I enter them manually in the search box, I will get the corrrect results. If I save the search and then reload it, the special characters are no longer in HTML and the search is now useless.
    Just for example again
    In an open document in code view insert a number in the format (without the spaces): 888& nbsp;888& nbsp ;8888
    Open a search dialog box and enter (without the spaces): [\d]{3}& nbsp ;[\d]{3}& nbsp ;[\d]{4}
    The search will find that entry.
    Save search as phone.dwr for example. Then load it and try the search again. It won't work because upon loading the search Dreamweaver replaces the HTML code which was saved with the rendered HTML. So now the search shows up as: [\d]{3} [\d]{3} [\d]{4} which will not find the string with hard coded non-breaking spaces that I'm looking for.
    Basically I want to be able to save a search query for reuse. When I load a search query, I want it to be exactly what I saved, not something that DW has rendered (that doesn't work).

  • Search and Replace String throwing the wrong error message with regexp?

    This came up in a LAVA thread, and I'm not sure if there's a bug here or not. When using Search and Replace string, and using a regular expression of [(G[b|i])], LabVIEW throws error -4622, "There is an unmatched parenthesis in a regular expression."  There are obviously no unmatched parenthesis in that expression, so it seems to me that the wrong error is being thrown. I'm just not sure if that's a syntactically valid regexp. The problem seems to be with nesting [ ]'s inside ( )'s inside [ ]'s. I've tried a couple of regexp resources on the Web, and one suggests it's valid, while the other seems to think it isn't.
    Message Edited by eaolson on 03-13-2007 10:33 AM
    Attachments:
    ATML_StandardUnit2.vi ‏10 KB
    regexp.png ‏5 KB

    adambrewster wrote:
    I think your regexp is invalid.
    In regexps, brackets are not the same as parentheses.  Parens are for grouping, while brackets are for matching one of a class of characters.  Brackets can not be nested.
    If the regexp is replaced with [G[bi]], there is no error, so it's not a matter of nested brackets. I couldn't find anything on the PCRE man page that forbids nested brackets specifically, but it makes sense.
    Your expression "[(G[bi])]", therefore parses as a character class which matches '(', 'G', '[', 'b', or 'i' followed by an unmatched paren, and an unmatched bracket.
    I don't believe that's the case. Replace the regexp with [(Gbi)], and the error goes away. So it's not a matter of the '(' being literal, and then encountering a ')' without a matching '('.
    daveTW wrote:
    what string exactly you want to replace? I think the round braces are not right in this case, since they mark partial matches which are given back by "match regular expression". But you don't want to extract parts of the string, you want to replace them (or delete, with empty <replace string>). So if you leave the outer [( ... )] then your RegEx means all strings with either "Gb" or "Gi".
    It's not my regular expression. A poster at LAVA was having problems with one of his (a truly frightening one), and this seemed to be the element that was causing the problem. I'm pretty sure that the originator of the regexp meant to use G(b|i), which seems like a complicated way of matching "Gb" or "Gi", if you ask me.

  • Search and Replace "Column Break" with "Page Break"?

    Hi,
    I have been using the "column break" where I really should have been using the "page break". The page break just makes more sense in my layout.
    Is there anyway to search and replace the column break with a page break?
    Thanks,
    Rhek

  • Search and replace formulas with AppleScript

    Thanks to this forum I've found out that it is possible to search and replace text by other text or formulas with AppleScript in Numbers 3.2
    Does anybody have a script to search and replace a formula or a part of a formula by another formula or a partial formula.
    For example:
    I would like to be able to find:
    = Table1::$b$3
    and replace this by:
    = Table1::$b$4

    De Signature,
    Would this approach work for you...
    This is a very neat way edit a complex formula in a single cell....
    a) Copy and Paste the formula to a new black page in Pages,
    b) Do your Find and Replace, then
    c) Copy and Paste the formulae back into the cell in Numbers.
    It works like a charm.
    Here is an example of how I used this approach...
    Original cell formulae:
    =AVERAGE(
    SMALL(OFFSET(K3,1,0,20,1),1),SMALL(OFFSET(K3,1,0,20,1),2),
    SMALL(OFFSET(K3,1,0,20,1),3),SMALL(OFFSET(K3,1,0,20,1),4),
    SMALL(OFFSET(K3,1,0,20,1),5),SMALL(OFFSET(K3,1,0,20,1),6),
    SMALL(OFFSET(K3,1,0,20,1),7),SMALL(OFFSET(K3,1,0,20,1),8))
    Final version of formulae:
    =AVERAGE(
    SMALL(OFFSET(K3,N1,0,20,1),1),SMALL(OFFSET(K3,N1,0,20,1),2),
    SMALL(OFFSET(K3,N1,0,20,1),3),SMALL(OFFSET(K3,N1,0,20,1),4),
    SMALL(OFFSET(K3,N1,0,20,1),5),SMALL(OFFSET(K3,N1,0,20,1),6),
    SMALL(OFFSET(K3,N1,0,20,1),7),SMALL(OFFSET(K3,N1,0,20,1),8))
    Find Replace: be cautious with the Find, to ensure it is unique, in my this example ",1,", to avoid changing the" ,1)"
    Enjoy...

  • Search and replace with wildcard?

    I always use search and replace with Homesite but I wonder if
    there is a way of using a wildcard? I often want to replace text at
    the beginning and end of variable text. I mean, if I have this:
    <h3>First text</h3>
    <h3>Second text here</h3>
    What I'd like is, using the * as a wildcard, is to use
    something like this:
    Replace <h3>*</h3> with <h2>*</h2>
    Any ideas? Thanks

    Make a backup first, in case this doesn't work (although it should).
    Use this in the Find field:
    countryText = "([^"]*)";
    And this in the Replace field:
    <countryText>$1</countryText>

  • E-Recruiting: Problems with search profile and serach templates

    Hi Recruiting-Experts,
    I´m facing problems with "Search Profiles" and "Search Templates"
    (Customizing SPRO --> SAP-E-Recruiting --> Recruitment --> Talent Warehouse --> Candidate --> Candidate Search )
    Out customers wants me to add a new search criterion to the talent search. It's a customer-field (type 'd' --> Date)  belonging to infotype 5106.
    Unfortunately, it doesn't work. The hit list is always empty.
    What I did:
    Customizing (see above)
    Updated search profile (report RCF_RECREATE_SEARCH_PROFILES)
    The result:
    I can see and choose the new search criterion on talent warehouse search site (recruiters startpage)
    I can find the data (internal format yyyymmdd) via transaction SKPR07 (see XML below, ZZEARLIEST_ENTRY 20090901)
    By the way, the hit list is also empty when adding and searching for birthdate.
    Has it got to do with the date stored in internal format?
    Thanks for any comments / help.
    Regards
    CHRIS
    =========================================================================

    Hi Sebastian,
    thanks for your quick answer.
    That's why I didn't get it done for hours yesterday.
    Thanks again,
    Regards
    CHRIS

  • Hello community I have a big problem with my iphone 4s as precent problem with wifi and ios7. my phone was a champ when actualize this, eh degrade searched everything but I can not because I get the error 3194. I want a solution please

    Hello community I have a big problem with my iphone 4s as precent problem with wifi and ios7. my phone was a champ when actualize this, eh degrade searched everything but I can not because I get the error 3194. I want a solution please

    This support document http://support.apple.com/kb/ts4451 relates to the 3194 error. Generally this error has to do with trying to install an iOS that is not the most current. Maybe you tried to jailbreak the phone, or downgrade iOS? Any of this apply to you?

Maybe you are looking for

  • Use mobile hotspot to provide internet to Aiport Extreme?

    I just got a Sierra W801 mobile hotspot and want to use it as my internet for my home network. Right now it is tethered to my iMac via USB. It does not have any other ports, only wireless b/g and can only connect to up to 5 devices. I can think of tw

  • 401 HTTP Response for remote web service portlet

    Hi, I am trying to configure IIS web page in ALUI as a remote web service portlet. I have used one of the help HTML pages of IIS server to configure portlet. http://localhost/IISHelp/iis/htm/core/iiwltop.htm However, I am getting 401 http response er

  • SMTP settings to access Outlook emails on E72

    Hi Folks, I am wondering if any of you still accesses Outlook or Hotmail emails using E72. Recently I got a problem of sending emails from my Outlook and Hotmail accounts though I have no difficulty to receive all incoming emails. It worked before on

  • Splitting Audio Channels in Elements 10

    I have to channels of audio recorded on my video.  Ch.1 (left) is the camera mic and Ch. 2 (Right) is the lav. mic.  How do I split the channels and remove the camera mic?  Once they are split I would also like to center Ch. 2 to both the left and ri

  • Error w/Dreamweaver 8 on Mac Browser Preferences

    Using Dreamweaver 8 on a Macintosh G5 (not an intel mac). We just installed this version of Dreamweaver 8 onto a Macintosh computer and everytime we open Dreamweaver 8, we receive the following error message: "Unable to read preview in browser prefer